This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_cache_path /tmp/nginx keys_zone=FHIR:10m; | |
# our origin server with added Cache-Control headers since HAPI has none | |
server { | |
listen 8080; | |
location / { | |
proxy_pass http://hapi.fhir.org/; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
add_header Cache-Control "public, must-revalidate, max-age=1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library Retrieve | |
using FHIR version '4.0.0' | |
include FHIRHelpers version '4.0.0' | |
codesystem gender: 'http://hl7.org/fhir/administrative-gender' | |
context Patient | |
define InInitialPopulation: | |
Patient.gender ~ Code 'male' from gender |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import timeit | |
from array import array | |
def c_add(c1, c2): | |
r1, i1 = c1 | |
r2, i2 = c2 | |
return (r1 + r2, i1 + i2) | |
def c_square(c): | |
r, i = c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "bundle", | |
"entry": [ | |
{ | |
"fullUrl": "urn:uuid:38f5cc57-a667-4c44-b9a9-8e8ce1bd86a8", | |
"resource": { | |
"resourceType": "Patient", | |
"name": { | |
"family": "___________________________", | |
"given": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resourceType": "Bundle", | |
"id": "Example-HIVSimple", | |
"type": "transaction", | |
"entry": [ | |
{ | |
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple", | |
"resource": { | |
"resourceType": "Patient", | |
"id": "Patient-HIVSimple", |
OlderNewer