eHealth Infrastructure (v2020.5)

StructureDefinition: ehealth-practitioner - Operation examples

GET [base]/Practitioner?address-use=work&name=55ff47b7-c7c9-456f-97d4-933ca4efbc60

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiN2QyYTk2ZmQtMGNjZS00YzUzLWI2M2EtYjFkYjY3YTJiMTUzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "b7df31e6-223e-4546-96cd-f9d0f2442577",
  "meta": {
    "lastUpdated": "2020-06-22T20:01:03.194+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-661.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=55ff47b7-c7c9-456f-97d4-933ca4efbc60"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-661.local/fhir/Practitioner/363",
      "resource": {
        "resourceType": "Practitioner",
        "id": "363",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-06-22T20:01:02.798+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "55ff47b7-c7c9-456f-97d4-933ca4efbc60"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "64b4e0bf-08bb-422c-8057-a16832a325c3",
            "city": "7596ae64-770c-4cf5-8ff2-31242c5991a9",
            "state": "364a762e-d28e-4f4c-9a24-7193aecee339",
            "postalCode": "f350c5dd-ca42-456e-ba8d-83270942cca4",
            "country": "1e6fc73d-de18-4eeb-aee2-abe7962dc71c"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-661.local/fhir/Practitioner/362",
      "resource": {
        "resourceType": "Practitioner",
        "id": "362",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-06-22T20:01:02.685+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "55ff47b7-c7c9-456f-97d4-933ca4efbc60"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "64b4e0bf-08bb-422c-8057-a16832a325c3",
            "city": "7596ae64-770c-4cf5-8ff2-31242c5991a9",
            "state": "364a762e-d28e-4f4c-9a24-7193aecee339",
            "postalCode": "f350c5dd-ca42-456e-ba8d-83270942cca4",
            "country": "1e6fc73d-de18-4eeb-aee2-abe7962dc71c"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/Practitioner/319/_history/2

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2RiZDA2ZDYtN2ZlNC00ZjA3LTllNDAtMDhkOWNjNjQyMzExIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Practitioner",
  "id": "319",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-06-22T20:00:53.262+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b82a7536-0874-489b-9f15-3ed4779ad9cc"
    }
  ]
}

POST [base]/Practitioner

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiJHRlc3Qtb25seS1jcmVhdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Practitioner",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "68441475-d307-4385-b9c4-87a9c9049503"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "310",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-06-22T20:00:51.046+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "68441475-d307-4385-b9c4-87a9c9049503"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmI3NTVlZDQtMjc3OS00Y2VkLWE0ODAtZGQwZGQwODMxYmYxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.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": "resource",
      "resource": {
        "resourceType": "Practitioner",
        "meta": {
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "31363be4-4486-4094-b251-3b950494c9b2"
          }
        ]
      }
    }
  ]
}

Response

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</div>"
  },
  "issue": [
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    },
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    }
  ]
}

PUT [base]/Practitioner/319

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2RiZDA2ZDYtN2ZlNC00ZjA3LTllNDAtMDhkOWNjNjQyMzExIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Practitioner",
  "id": "319",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-06-22T20:00:53.159+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b82a7536-0874-489b-9f15-3ed4779ad9cc"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "319",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-06-22T20:00:53.262+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b82a7536-0874-489b-9f15-3ed4779ad9cc"
    }
  ]
}