eHealth Infrastructure (v2019.6)

StructureDefinition: ehealth-patient - Operation examples

POST [base]/Patient/$createPatient

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJkcXlmaEdsRGkzM2prU2o5NWNRYXp3Zk9MOWUzRDlTbFQ1czQxOFplTzlvIn0.eyJqdGkiOiJjOTZiMTNkZS1kM2QzLTRkMTAtYmY1YS1jY2YzNDdlMzE3MDAiLCJleHAiOjE1NzMwNTE5MTYsIm5iZiI6MCwiaWF0IjoxNTczMDUxNjE2LCJpc3MiOiJodHRwczovL3NhbWwuZnV0LnRyaWZvcmsuY29tL2F1dGgvcmVhbG1zL2VoZWFsdGgiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZTZlYWYxODEtZGQ2MC00MmIzLWI0ODItODljNDA4YjBkNWQ0IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoidHJpZm9ya19hZG1pbiIsImF1dGhfdGltZSI6MCwic2Vzc2lvbl9zdGF0ZSI6IjFlNGZkNWY4LTNlYWEtNGI4ZC1hNWRkLWM1Mzg1MDM0NTFlZSIsImFjciI6IjEiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiT3JnYW5pemF0aW9uLnJlYWQiLCJDb21tdW5pY2F0aW9uLnJlYWQiLCJQcmFjdGl0aW9uZXIuZGVsZXRlIiwiRXBpc29kZU9mQ2FyZS51cGRhdGUiLCJPcmdhbml6YXRpb24ud3JpdGUiLCJQYXRpZW50LnJlYWQiLCJFcGlzb2RlT2ZDYXJlLmRlbGV0ZSIsIlByYWN0aXRpb25lci51cGRhdGUiLCJQYXRpZW50JGNyZWF0ZVBhdGllbnRGcm9tUGVyc29uIiwiT3JnYW5pemF0aW9uLnNlYXJjaCIsIlBhdGllbnQucGF0Y2giLCJQYXRpZW50LioiLCJFcGlzb2RlT2ZDYXJlLioiLCJDYXJlVGVhbS5kZWxldGUiLCJDb21tdW5pY2F0aW9uLioi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/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType" : "Parameters",
  "parameter" : [ {
    "name" : "crn",
    "valueIdentifier" : {
      "system" : "urn:oid:1.2.208.176.1.2",
      "value" : "0506504008"
    }
  } ]
}

Response

{
  "resourceType" : "Patient",
  "id" : "263",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#7e2d84c9834841b1"
    } ],
    "versionId" : "1",
    "lastUpdated" : "2019-11-06T15:17:28.359+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient" ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Anne Holm <b>MØLLER </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>0506504008</td></tr><tr><td>Address</td><td><span>Bjergagervej 110 </span><br/><span>Karrebæksminde </span></td></tr></tbody></table></div>"
  },
  "identifier" : [ {
    "use" : "official",
    "system" : "urn:oid:1.2.208.176.1.2",
    "value" : "0506504008"
  } ],
  "name" : [ {
    "family" : "Møller",
    "given" : [ "Anne", "Holm" ]
  } ],
  "gender" : "female",
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0370",
        "display" : "Næstved"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "Bjergagervej 110" ],
    "city" : "Karrebæksminde",
    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0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Body:


Response

{
  "resourceType" : "Patient",
  "id" : "257",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#05e2a15d065fb4e3"
    } ],
    "versionId" : "2",
    "lastUpdated" : "2019-11-06T15:17:41.984+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient" ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Anne Holm <b>MØLLER </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>0506504003</td></tr><tr><td>Address</td><td><span>Bjergagervej 110 </span><br/><span>Karrebæksminde </span></td></tr></tbody></table></div>"
  },
  "extension" : [ {
    "url" : "http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired",
    "valueBoolean" : true
  } ],
  "identifier" : [ {
    "use" : "official",
    "system" : "urn:oid:1.2.208.176.1.2",
    "value" : "0506504003"
  } ],
  "name" : [ {
    "family" : "Møller",
    "given" : [ "Anne", "Holm" ]
  } ],
  "gender" : "female",
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0370",
        "display" : "Næstved"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "Bjergagervej 110" ],
    "city" : "Karrebæksminde",
    "postalCode" : "4736"
  } ]
}

PATCH [base]/Patient/257

Header

Accept-Charset: utf-8
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RlYW1faWQiOiJodHRwOi8vb3JnYW5pemF0aW9uLmZ1dC50cmlmb3JrLmNvbS9maGlyL0NhcmVUZWFtLzM1MTAyIiwicGF0aWVudF9pZCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC9maGlyL1BhdGllbnQvMjU3In0sInByZWZlcnJlZF91c2VybmFtZSI6ImN1Y3VtYmVyX3RyZWF0bWVudCIsImdpdmVuX25hbWUiOiJQb250aXVzIiwiZmFtaWx5X25hbWUiOiJQaWxhdHVzIn0.b2qgl9Ux-dfa0VGSm5j2ObGPdcXDHRCIhXDsUEFrwlhjDBx4ebMLj8Q-AchgPvAn7TGAkLcZ-vY1C7_NSWsCo5i_I6BOGjnX4wjSwQOZ8fLf6uh3tdTQrWe5EWUUBklMwzh14P_MIwYgxdlqxHWGeaOlfeFXN9tM2ontzH0r_cYx4ep2X91BevapI4dXCNL_DMDiluauyvDvr5qSse-gkFaiJj_tFr0qm9aoT2ch5t9iwrfVM801vJJ5gvKwpr650LT020rmaX4WdbFxbUF3a0vz65amSCEPNSB_Dy7WVn6yEBpmTPybpibchNRdOmB8RbH9oaor6ec7ccnvSDR-VA
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/4.0.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8

Body:

[ {
  "op" : "add",
  "path" : "/extension",
  "value" : [ {
    "valueBoolean" : true,
    "url" : "http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired"
  } ]
} ]

Response

{
  "resourceType" : "Patient",
  "id" : "257",
  "meta" : {
    "extension" : [ {
      "url" : "http://hapifhir.io/fhir/StructureDefinition/resource-meta-source",
      "valueUri" : "#05e2a15d065fb4e3"
    } ],
    "versionId" : "2",
    "lastUpdated" : "2019-11-06T15:17:41.984+01:00",
    "profile" : [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-patient" ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><div class=\"hapiHeaderText\">Anne Holm <b>MØLLER </b></div><table class=\"hapiPropertyTable\"><tbody><tr><td>Identifier</td><td>0506504003</td></tr><tr><td>Address</td><td><span>Bjergagervej 110 </span><br/><span>Karrebæksminde </span></td></tr></tbody></table></div>"
  },
  "extension" : [ {
    "url" : "http://hl7.org/fhir/StructureDefinition/patient-interpreterRequired",
    "valueBoolean" : true
  } ],
  "identifier" : [ {
    "use" : "official",
    "system" : "urn:oid:1.2.208.176.1.2",
    "value" : "0506504003"
  } ],
  "name" : [ {
    "family" : "Møller",
    "given" : [ "Anne", "Holm" ]
  } ],
  "gender" : "female",
  "address" : [ {
    "extension" : [ {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-municipality-code",
      "valueCoding" : {
        "system" : "http://danmarksadresser.dk/kommunekode",
        "code" : "0370",
        "display" : "Næstved"
      }
    }, {
      "url" : "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-regional-subdivision-code",
      "valueCodeableConcept" : {
        "coding" : [ {
          "system" : "https://www.iso.org/obp/ui/#iso:code:3166:DK",
          "code" : "DK-85"
        } ]
      }
    } ],
    "use" : "home",
    "line" : [ "Bjergagervej 110" ],
    "city" : "Karrebæksminde",
    "postalCode" : "4736"
  } ]
}