FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: OperationDefinition/ehealth-patient-create

Packagedk.ehealth.sundhed.fhir.ig.core
TypeOperationDefinition
Idehealth-patient-create
FHIR VersionR4
Sourcehttp://ehealth.sundhed.dk/fhir/https://build.fhir.org/ig/fut-infrastructure/implementation-guide/OperationDefinition-ehealth-patient-create.html
URLhttp://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create
Version3.5.1
Statusactive
Date2019-02-02
NameCreate Patient
Realmdk
DescriptionCreates 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
Typetrue
Kindoperation

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: Operationsdefinition ehealth-patient-create

URL: [base]/Patient/$createPatient

Parameters

UseNameScopeCardinalityTypeBindingDocumentation
INcrn1..1Identifier

The social security number of the person on which this operation is executed.

OUTreturn1..1Patient

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.


Source

{
  "resourceType": "OperationDefinition",
  "id": "ehealth-patient-create",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://ehealth.sundhed.dk/fhir/OperationDefinition/ehealth-patient-create",
  "version": "3.5.1",
  "name": "Create Patient",
  "status": "active",
  "kind": "operation",
  "date": "2019-02-02",
  "publisher": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
  "contact": [
    {
      "name": "Den telemedicinske infrastruktur (eHealth Infrastructure)",
      "telecom": [
        {
          "system": "url",
          "value": "http://ehealth.sundhed.dk"
        }
      ]
    }
  ],
  "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",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "DK",
          "display": "Denmark"
        }
      ]
    }
  ],
  "code": "createPatient",
  "comment": "See the wiki for examples on how to use the operation.",
  "resource": [
    "Patient"
  ],
  "system": false,
  "type": true,
  "instance": false,
  "parameter": [
    {
      "name": "crn",
      "use": "in",
      "min": 1,
      "max": "1",
      "documentation": "The social security number of the person on which this operation is executed.",
      "type": "Identifier"
    },
    {
      "name": "return",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "The Patient resource that has been created on the server or an already created patient",
      "type": "Patient"
    }
  ]
}