{
"description": "Creates a Patient resource on the server and returns it in the response. If the patient already exists, it is returned instead. If the CPR number does not match a patient on the service, looks up the CPR in the national registry and finds any potential prior CPRs used by the person. If a prior CPR number matches a patient on the service, updates the patient with national data, and returns a patient with the newest data. NOTE: This means that the returned patient can have a different identifier than the one used for the request. If no prior CPR matches, creates a new patient using national data. If the CPR is invalid, i.e. does not correspond to a patient on the national registry, it errors. \\r\\n\\r\\n### Note\\r\\nThis operation is currently the only way to create Patient resources in the eHealth Infrastructure, as it ensures that the correct bindings from national registers",
"_filename": "OperationDefinition-ehealth-patient-create.json",
"package_name": "dk.ehealth.sundhed.fhir.ig.core",
"date": "2019-02-02",
"system": false,
"publisher": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
"instance": false,
"jurisdiction": [ {
"coding": [ {
"code": "DK",
"system": "urn:iso:std:iso:3166",
"display": "Denmark"
} ]
} ],
"name": "Create Patient",
"type": "true",
"experimental": null,
"resourceType": "OperationDefinition",
"title": null,
"package_version": "10.0.0",
"status": "active",
"id": "7c7a8870-e9b5-4144-826f-46d70ade2053",
"resource": [ "Patient" ],
"kind": "operation",
"comment": "See the wiki for examples on how to use the operation.",
"url": "http://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create",
"code": "createPatient",
"version": "10.0.0",
"contact": [ {
"name": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
"telecom": [ {
"value": "http://ehealth.sundhed.dk",
"system": "url"
} ]
} ],
"parameter": [ {
"max": "1",
"min": 1,
"use": "in",
"name": "crn",
"type": "Identifier",
"documentation": "The social security number of the person on which this operation is executed."
}, {
"max": "1",
"min": 1,
"use": "out",
"name": "return",
"type": "Patient",
"documentation": "The Patient resource that has been created on the server or an already created patient"
} ]
}