ehealth-patient-create
type: OperationDefinition
node role: treeRoot
resource.id:
  value: ehealth-patient-create
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: OperationDefinition ehealth-patient-create URL: [base]/Patient/$createPatient Parameters Use Name Scope Cardinality Type Binding Documentation IN crn 1..1 Identifier The social security number of the person on which this operation is executed. OUT return 1..1 Patient The Patient resource that has been created on the server or an already created patient See the wiki for examples on how to use the operation.
operation definition.url:
  value: http://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create
operation definition.version:
  value: 10.0.1
operation definition.name:
  value: Create Patient
operation definition.status:
  value: active
operation definition.kind:
  value: operation
operation definition.date:
  value: 2019-02-02
operation definition.publisher:
  value: Den telemedicinske infrastruktur (eHealth Infrastructure)
operation definition.contact:
  index: 0
  contact detail.name:
    value: Den telemedicinske infrastruktur (eHealth Infrastructure)
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://ehealth.sundhed.dk
operation definition.description:
  value: 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. ### Note This operation is currently the only way to create Patient resources in the eHealth Infrastructure, as it ensures that the correct bindings from national registers
operation definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: DK
    coding.display:
      value: Denmark
operation definition.code:
  value: createPatient
operation definition.comment:
  value: See the wiki for examples on how to use the operation.
operation definition.resource:
  value: Patient
  index: 0
operation definition.system:
  value: false
operation definition.type:
  value: true
operation definition.instance:
  value: false
operation definition.parameter:
  index: 0
  operation definition.parameter.name:
    value: crn
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 1
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: The social security number of the person on which this operation is executed.
  operation definition.parameter.type:
    value: Identifier
operation definition.parameter:
  index: 1
  operation definition.parameter.name:
    value: return
  operation definition.parameter.use:
    value: out
  operation definition.parameter.min:
    value: 1
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: The Patient resource that has been created on the server or an already created patient
  operation definition.parameter.type:
    value: Patient