{"name":"EU Health Data API: demo server","description":"A FHIR R4 server for the HL7 Europe Health Data API (EHDS). It implements SMART Backend Services, IHE PDQm patient lookup, IHE MHD document search (ITI-67), retrieve (ITI-68) and publish (ITI-105 Simplified Publish), and RESTful resource access. Synthetic data only. Anyone can register a client, then read and publish with a token.","specification":"https://build.fhir.org/ig/euridice-org/eu-health-data-api/","fhir_base_url":"https://ehds.joshpriebe.com","fhir_version":"4.0.1","synthetic_data_only":true,"access":{"summary":"Anyone can register a client, then read and publish with a token.","open_without_token":["https://ehds.joshpriebe.com/","https://ehds.joshpriebe.com/llms.txt","https://ehds.joshpriebe.com/metadata","https://ehds.joshpriebe.com/.well-known/smart-configuration","https://ehds.joshpriebe.com/.well-known/jwks.json","https://ehds.joshpriebe.com/register-client","https://ehds.joshpriebe.com/token","https://ehds.joshpriebe.com/quickstart.py"],"everything_else":"needs Authorization: Bearer <token>","read_scope":"system/*.rs","publish_scope":"system/DocumentReference.c","scope_syntax":"SMART v2 (.cruds) and v1 (.read/.write) are both accepted."},"start_here":{"llms_txt":"https://ehds.joshpriebe.com/llms.txt","capability_statement":"https://ehds.joshpriebe.com/metadata","smart_configuration":"https://ehds.joshpriebe.com/.well-known/smart-configuration","register_client":"https://ehds.joshpriebe.com/register-client","quickstart_script":"https://ehds.joshpriebe.com/quickstart.py","bruno_collection":"https://ehds.joshpriebe.com/bruno.zip","human_ui":"https://ehds.joshpriebe.com/ui/"},"steps":[{"step":1,"name":"register","standard":"OAuth 2.0 Dynamic Client Registration (RFC 7591), open to anyone","request":{"method":"POST","url":"https://ehds.joshpriebe.com/register-client","content_type":"application/json","body":{"client_id":"my-agent-1","client_name":"<who you are, e.g. 'Claude agent for Jane Doe, Acme Health'>","scopes":["system/*.rs","system/DocumentReference.c"],"jwk":"<your public key as a JWK (RSA or EC)>  OR  public_key_pem: '<PEM>'"}},"notes":"GET the same URL for the full schema. The key id to put in your JWT header is returned as next_steps.client_assertion_kid (<client_id>-key-1)."},{"step":2,"name":"token","standard":"SMART App Launch 2 Backend Services (client_credentials + private_key_jwt)","request":{"method":"POST","url":"https://ehds.joshpriebe.com/token","content_type":"application/x-www-form-urlencoded","form":{"grant_type":"client_credentials","client_assertion_type":"urn:ietf:params:oauth:client-assertion-type:jwt-bearer","client_assertion":"<JWT signed with your private key>","scope":"system/*.rs system/DocumentReference.c"}},"client_assertion":{"header":{"alg":"RS256 (or RS384, ES256, ES384)","kid":"<client_id>-key-1"},"claims":{"iss":"<client_id>","sub":"<client_id>","aud":"https://ehds.joshpriebe.com/token","exp":"now + 60..300 s","jti":"<random, single use>"}},"notes":"Send Authorization: Bearer <access_token> on every FHIR request. Tokens last 60 minutes."},{"step":3,"name":"find-patient","standard":"IHE PDQm ITI-78","request":{"method":"GET","url":"https://ehds.joshpriebe.com/Patient?identifier=urn:ehds-demo:slot|p-001"},"also":["https://ehds.joshpriebe.com/Patient?family=Müller&birthdate=1968-03-14","POST https://ehds.joshpriebe.com/Patient/$match"]},{"step":4,"name":"find-documents","standard":"IHE MHD ITI-67","request":{"method":"GET","url":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011"},"notes":"Filter by type (LOINC), e.g. &type=http://loinc.org|60591-5. patient.identifier=<system>|<value> also works."},{"step":5,"name":"retrieve","standard":"IHE MHD ITI-68","request":{"method":"GET","url":"https://ehds.joshpriebe.com/Bundle/e00af379-422c-53c2-804e-09d170360cc6"},"notes":"GET the DocumentReference's content[0].attachment.url (relative to the base URL). You get a FHIR document Bundle (Bundle.type=document)."},{"step":6,"name":"publish","standard":"IHE MHD ITI-105 Simplified Publish","request":{"method":"POST","url":"https://ehds.joshpriebe.com/DocumentReference","content_type":"application/fhir+json","scope":"system/DocumentReference.c","body":{"resourceType":"DocumentReference","status":"current","type":{"coding":[{"system":"http://loinc.org","code":"60591-5","display":"Patient summary Document"}]},"subject":{"reference":"Patient/08e3cb00-6b3e-5d00-bb40-04b7a2114011"},"content":[{"attachment":{"contentType":"application/fhir+json","data":"<base64 of the document Bundle's bytes>"}}]}},"notes":"Put the document Bundle (type=document, Composition first, Patient included) base64-encoded in content[0].attachment.data. subject may name a Patient that is not on this server: the server resolves it from the Patient inside the Bundle (matching an existing Patient by identifier, else creating it). hash and size are optional; the server computes them and rejects a mismatch. Response: 201, Location: /DocumentReference/<id>, body = the stored DocumentReference. Its attachment.url returns your exact bytes."}],"priority_categories":{"patient-summary":{"kind":"document","name":"Patient Summary","loinc":"60591-5","also":[],"query":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011&type=http://loinc.org|60591-5","retrieve":"https://ehds.joshpriebe.com/Bundle/e00af379-422c-53c2-804e-09d170360cc6","profile":"http://hl7.eu/fhir/eps/StructureDefinition/bundle-eu-eps"},"laboratory-report":{"kind":"document","name":"Laboratory Report","loinc":"11502-2","also":[],"query":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011&type=http://loinc.org|11502-2","retrieve":"https://ehds.joshpriebe.com/Bundle/ebd53e0c-223c-56ad-b296-c4ba046f6013","profile":"http://hl7.eu/fhir/laboratory/StructureDefinition/Bundle-eu-lab"},"discharge-report":{"kind":"document","name":"Hospital Discharge Report","loinc":"18842-5","also":["34105-7"],"query":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011&type=http://loinc.org|18842-5","retrieve":"https://ehds.joshpriebe.com/Bundle/bfaa2a22-6f74-5e7d-9928-7966e20a85d9","profile":"http://hl7.eu/fhir/hdr/StructureDefinition/bundle-eu-hdr"},"imaging-report":{"kind":"document","name":"Imaging Report","loinc":"85430-7","also":["18748-4"],"query":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011&type=http://loinc.org|85430-7","retrieve":"https://ehds.joshpriebe.com/Bundle/08b7ef6f-6119-517c-b900-fbe7c8a8a3c6","profile":"http://hl7.eu/fhir/imaging/StructureDefinition/BundleReportEuImaging"},"eprescription":{"kind":"resource","name":"ePrescription","resourceType":"MedicationRequest","query":"https://ehds.joshpriebe.com/MedicationRequest?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","profile":"http://hl7.eu/fhir/mpd/StructureDefinition/MedicationRequest-eu-mpd"},"edispensation":{"kind":"resource","name":"eDispensation","resourceType":"MedicationDispense","query":"https://ehds.joshpriebe.com/MedicationDispense?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","profile":"http://hl7.eu/fhir/mpd/StructureDefinition/MedicationDispense-eu-mpd"}},"reference_patient":{"id":"08e3cb00-6b3e-5d00-bb40-04b7a2114011","slot":"p-001","family":"Müller","given":"Anna","birthDate":"1968-03-14","gender":"female","country":"AT","city":"Vienna"},"match_parameters":{"resourceType":"Parameters","parameter":[{"name":"resource","resource":{"resourceType":"Patient","name":[{"family":"Müller","given":["Anna"]}],"birthDate":"1968-03-14","gender":"female"}},{"name":"onlyCertainMatches","valueBoolean":false},{"name":"count","valueInteger":3}]},"examples":{"capability_statement":"https://ehds.joshpriebe.com/metadata","smart_configuration":"https://ehds.joshpriebe.com/.well-known/smart-configuration","jwks":"https://ehds.joshpriebe.com/.well-known/jwks.json","token":"https://ehds.joshpriebe.com/token","register_client":"https://ehds.joshpriebe.com/register-client","publish_iti105":"https://ehds.joshpriebe.com/DocumentReference","quickstart_script":"https://ehds.joshpriebe.com/quickstart.py","all_bundle_uuids":"https://ehds.joshpriebe.com/spec/all-bundle-ids","lookup_patient_by_slot":"https://ehds.joshpriebe.com/Patient?identifier=urn:ehds-demo:slot|p-001","search_patient_by_demographics":"https://ehds.joshpriebe.com/Patient?family=Müller&birthdate=1968-03-14","patient_match":"https://ehds.joshpriebe.com/Patient/$match  (POST Parameters)","read_patient":"https://ehds.joshpriebe.com/Patient/08e3cb00-6b3e-5d00-bb40-04b7a2114011","patient_summary_operation":"https://ehds.joshpriebe.com/Patient/08e3cb00-6b3e-5d00-bb40-04b7a2114011/$summary","observations_for_patient":"https://ehds.joshpriebe.com/Observation?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","allergies_for_patient":"https://ehds.joshpriebe.com/AllergyIntolerance?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","observations_by_patient_identifier":"https://ehds.joshpriebe.com/Observation?patient.identifier=urn:ehds-demo:slot|p-001","document_search":"https://ehds.joshpriebe.com/DocumentReference?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","document_search_by_identifier":"https://ehds.joshpriebe.com/DocumentReference?patient.identifier=urn:ehds-demo:slot|p-001","document_retrieve":"https://ehds.joshpriebe.com/Bundle/e00af379-422c-53c2-804e-09d170360cc6","eprescription_for_patient":"https://ehds.joshpriebe.com/MedicationRequest?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011","edispensation_for_patient":"https://ehds.joshpriebe.com/MedicationDispense?patient=08e3cb00-6b3e-5d00-bb40-04b7a2114011"},"tags":{"urn:ehds-demo:origin":"reference = seeded by this server; community = published by a client","urn:ehds-demo:submission":"the id of the publish a resource arrived in","urn:ehds-demo:derived-from":"code fhir.epic.com-sandbox: data derived from the public fhir.epic.com sandbox. Add it to DocumentReference.meta.tag when you publish; it is kept and labelled."},"identity_notes":{"patient_ids_are_uuids":true,"slot_identifier_system":"urn:ehds-demo:slot","published_resources_get_local_ids":"Resources inside a published Bundle are stored under local ids. Your original id is kept as identifier urn:ehds-demo:source-id|<your id>. GET /{Type}/{id}/$source links back."},"conveniences_not_in_the_ig":{"upload_bundle":"POST https://ehds.joshpriebe.com/ with a transaction or document Bundle (scope system/Bundle.write). A document Bundle is published as ITI-105 would publish it; a transaction Bundle's resources are stored, with no DocumentReference. Prefer ITI-105.","patient_summary_operation":"https://ehds.joshpriebe.com/Patient/08e3cb00-6b3e-5d00-bb40-04b7a2114011/$summary"}}