Skip to content

Commit 930d2f4

Browse files
Merge pull request #31 from WorldHealthOrganization/smart-dak-pnc
Smart dak pnc
2 parents e00e356 + f2a9b96 commit 930d2f4

1,352 files changed

Lines changed: 155721 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.json

Lines changed: 1005 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.json1

Lines changed: 1005 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.json2

Lines changed: 1005 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.ttl

Lines changed: 1387 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.xml

Lines changed: 816 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.xml1

Lines changed: 816 additions & 0 deletions
Large diffs are not rendered by default.

dak-pnc/ImplementationGuide-smart.who.int.dak-pnc.xml2

Lines changed: 816 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
function Redirect($url)
3+
{
4+
header('Location: ' . $url, true, 302);
5+
exit();
6+
}
7+
8+
$accept = $_SERVER['HTTP_ACCEPT'];
9+
if (strpos($accept, 'application/json+fhir') !== false)
10+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.json2');
11+
elseif (strpos($accept, 'application/fhir+json') !== false)
12+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.json1');
13+
elseif (strpos($accept, 'json') !== false)
14+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.json');
15+
elseif (strpos($accept, 'application/xml+fhir') !== false)
16+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.xml2');
17+
elseif (strpos($accept, 'application/fhir+xml') !== false)
18+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.xml1');
19+
elseif (strpos($accept, 'html') !== false)
20+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/index.html');
21+
else
22+
Redirect('http://smart.who.int/dak-pnc/v0.9.9/ImplementationGuide-smart.who.int.dak-pnc.xml');
23+
?>
24+
25+
You should not be seeing this page. If you do, PHP has failed badly.
445 KB
Loading
629 KB
Binary file not shown.

0 commit comments

Comments
 (0)