<OperationDefinition xmlns="http://hl7.org/fhir"> <id value="ehealth-patient-create-operationdefinition"/> <text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><h2>Create Patient</h2><p>OPERATION: Create Patient</p><p>The official URL for this operation definition is: </p><pre>http://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create-operationdefinition</pre><div><p>This operation is used to create a new Patient resource. Once executed successfully the Patient resource is created on the server and as well returned in the response parameter. The operation takes the input parameters listed and returns the Patient resource where the person having the provided civil registration number (crn) is used as the origin of the data.</p> <h3>Note</h3> <p>This operation is currently the only way to create Patient resources in the eHealth Infrastructure, as it ensures that the correct bindings are present according to danish law</p> </div><p>URL: [base]/Patient/$createPatient</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>crn</td><td>1..1</td><td><a href="http://hl7.org/fhir/STU3/datatypes.html#Identifier">Identifier</a></td><td/><td><div><p>The social security number of the person on which this operation is executed.</p> </div></td></tr><tr><td>IN</td><td>managingOrganization</td><td>1..1</td><td><a href="http://hl7.org/fhir/STU3/datatypes.html#Reference">Reference</a></td><td/><td><div><p>A reference to the managing organization that has the responsibility of the context of the created Patient resource</p> </div></td></tr><tr><td>IN</td><td>policy</td><td>1..*</td><td><a href="http://hl7.org/fhir/STU3/datatypes.html#uri">uri</a></td><td/><td><div><p>A uri that models what act this patient is under</p> </div></td></tr><tr><td>OUT</td><td>return</td><td>1..1</td><td><a href="http://hl7.org/fhir/STU3/parameters.html">Parameters</a></td><td/><td><div><p>The Patient resource that has been created on the server</p> </div></td></tr></table><div><p>See the wiki for examples on how to use the operation.</p> </div></div> </text> <url value="http://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create-operationdefinition"/> <version value="1.0.0"/> <name value="Create Patient"/> <status value="active"/> <kind value="operation"/> <date value="2019-02-02T00:00:00+00:00"/> <description value="This operation is used to create a new Patient resource. Once executed successfully the Patient resource is created on the server and as well returned in the response parameter. The operation takes the input parameters listed and returns the Patient resource where the person having the provided civil registration number (crn) is used as the origin of the data. ### Note This operation is currently the only way to create Patient resources in the eHealth Infrastructure, as it ensures that the correct bindings are present according to danish law"/> <code value="createPatient"/> <comment value="See the wiki for examples on how to use the operation."/> <resource value="Patient"/> <system value="false"/> <type value="true"/> <instance value="false"/> <parameter> <name value="crn"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="The social security number of the person on which this operation is executed."/> <type value="Identifier"/> <profile> <reference value="http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-dk-crn-identifier"/> </profile> </parameter> <parameter> <name value="managingOrganization"/> <use value="in"/> <min value="1"/> <max value="1"/> <documentation value="A reference to the managing organization that has the responsibility of the context of the created Patient resource"/> <type value="Reference"/> </parameter> <parameter> <name value="policy"/> <use value="in"/> <min value="1"/> <max value="*"/> <documentation value="A uri that models what act this patient is under"/> <type value="uri"/> </parameter> <parameter> <name value="return"/> <use value="out"/> <min value="1"/> <max value="1"/> <documentation value="The Patient resource that has been created on the server"/> <type value="Parameters"/> </parameter> </OperationDefinition>