drajer-health / uds-plus

HRSA UDS+ FHIR IG Repository.
Creative Commons Zero v1.0 Universal
10 stars 0 forks source link

Publishing issue for StructureDefinitions #60

Open cooperthompson opened 6 months ago

cooperthompson commented 6 months ago

It looks like there is some sort of publication issue for the profile official URLs. For example, the Official URL from UDS Plus MedicationStatement is returning a PHP error page:

This is the official URL that returns the error: http://fhir.org/guides/hrsa/uds-plus/StructureDefinition/uds-plus-medicationstatement

<?php
function Redirect($url)
{
  header('Location: ' . $url, true, 302);
  exit();
}

$accept = $_SERVER['HTTP_ACCEPT'];
if (strpos($accept, 'application/json+fhir') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.json2');
elseif (strpos($accept, 'application/fhir+json') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.json1');
elseif (strpos($accept, 'json') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.json');
elseif (strpos($accept, 'application/xml+fhir') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.xml2');
elseif (strpos($accept, 'application/fhir+xml') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.xml1');
elseif (strpos($accept, 'html') !== false)
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.html');
else 
  Redirect('http://fhir.org/guides/hrsa/uds-plus/STU1/StructureDefinition-uds-plus-medicationstatement.xml');
?>

You should not be seeing this page. If you do, PHP has failed badly.
nbashyam commented 5 months ago

Will investigate, not sure why this is the case.