eHealth Infrastructure
2.9.0 - release

Publish Box goes here

Resource Profile: ehealth-practitioner - Examples

No examples are currently available for the profile.

StructureDefinition: ehealth-practitioner - Operation examples

GET [base]/Practitioner?address-use=work&name=763e7e0a-4d83-4fd7-b29a-0c0bffd5e262

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYTBjNTY0MjctMDE4ZS00YzRhLTk3MzctZDM1ZTMwOGQxNzE3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "b4510aab-ebe1-4f64-abc8-85f1ed608e12",
  "meta": {
    "lastUpdated": "2023-08-17T14:36:58.806+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-1108.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=763e7e0a-4d83-4fd7-b29a-0c0bffd5e262"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-1108.local/fhir/Practitioner/357",
      "resource": {
        "resourceType": "Practitioner",
        "id": "357",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-08-17T14:36:58.420+00:00",
          "source": "#d9d0f487-0e2e-9c",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "763e7e0a-4d83-4fd7-b29a-0c0bffd5e262"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "9325cacd-0ad7-4e13-806d-1a7bf57cf9bc",
            "city": "cae0fe19-7c3f-49ad-81b1-5feb135f937b",
            "state": "3619698f-1473-4bad-9584-f5d00ffe73bf",
            "postalCode": "ec85f54b-6354-4e0c-91df-0c86674e14ac",
            "country": "8093c993-dea1-42d9-a4ea-8fb16d132e90"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-1108.local/fhir/Practitioner/358",
      "resource": {
        "resourceType": "Practitioner",
        "id": "358",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-08-17T14:36:58.521+00:00",
          "source": "#a2406fa3-56d8-9c",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "763e7e0a-4d83-4fd7-b29a-0c0bffd5e262"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "9325cacd-0ad7-4e13-806d-1a7bf57cf9bc",
            "city": "cae0fe19-7c3f-49ad-81b1-5feb135f937b",
            "state": "3619698f-1473-4bad-9584-f5d00ffe73bf",
            "postalCode": "ec85f54b-6354-4e0c-91df-0c86674e14ac",
            "country": "8093c993-dea1-42d9-a4ea-8fb16d132e90"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYjUxMWYwNzctZDMxNS00NmJhLTljNzEtNDNjOTJjODRlMTBmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Practitioner",
  "id": "314",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-08-17T14:36:50.553+00:00",
    "source": "#8c0d86e1-22d4-9e",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3b8e1751-166f-41a0-8101-cae75a6aa186"
    }
  ]
}

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/6.2.1 (FHIR Client; FHIR 4.0.1/R4; 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": "a9eaa82e-1f46-43b6-bb6a-bc7c0914b679"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "305",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-08-17T14:36:49.046+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "a9eaa82e-1f46-43b6-bb6a-bc7c0914b679"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOGU3NGQ1N2MtYTFhYy00N2JhLTg5YmUtOGE1ZTg3NjAyMjEwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; 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": "472f9ac2-e7ba-4311-ba7e-7ec79b8c3986"
          }
        ]
      }
    }
  ]
}

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></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr></table></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/314

Header

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

Body:

{
  "resourceType": "Practitioner",
  "id": "314",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-08-17T14:36:50.489+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3b8e1751-166f-41a0-8101-cae75a6aa186"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "314",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-08-17T14:36:50.553+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3b8e1751-166f-41a0-8101-cae75a6aa186"
    }
  ]
}