eHealth Infrastructure
2.10.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=e5ae9d2b-6a15-42dd-b8aa-c6dcc0271cc9

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWY0YzUxMDAtMzIxYy00ODM5LThjM2YtZmQ0ZDEyODg3YmI5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "ff05914f-bd97-4b3f-b117-9ea3e862d981",
  "meta": {
    "lastUpdated": "2023-10-16T09:18:20.163+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-1125.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=e5ae9d2b-6a15-42dd-b8aa-c6dcc0271cc9"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-1125.local/fhir/Practitioner/357",
      "resource": {
        "resourceType": "Practitioner",
        "id": "357",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-10-16T09:18:19.570+00:00",
          "source": "#aacfe43a-8972-98",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "e5ae9d2b-6a15-42dd-b8aa-c6dcc0271cc9"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "c2a76e01-42f4-4ecd-9dda-9aaa740c2537",
            "city": "4b5db96a-234c-4e58-b36d-13e4eff3b099",
            "state": "087e4327-875b-4462-97ce-6010bf1af77b",
            "postalCode": "1676493b-504b-451a-85eb-9a4e9ef84ca8",
            "country": "ac26615d-eba6-4c73-b6e8-2a19cc23dd0f"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-1125.local/fhir/Practitioner/358",
      "resource": {
        "resourceType": "Practitioner",
        "id": "358",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2023-10-16T09:18:19.724+00:00",
          "source": "#82a9d959-c888-96",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "e5ae9d2b-6a15-42dd-b8aa-c6dcc0271cc9"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "c2a76e01-42f4-4ecd-9dda-9aaa740c2537",
            "city": "4b5db96a-234c-4e58-b36d-13e4eff3b099",
            "state": "087e4327-875b-4462-97ce-6010bf1af77b",
            "postalCode": "1676493b-504b-451a-85eb-9a4e9ef84ca8",
            "country": "ac26615d-eba6-4c73-b6e8-2a19cc23dd0f"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWI4MzJkZGEtMWRjZi00ZmMyLTg0OGUtYmI4NjljZTI3MDk4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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-10-16T09:18:10.393+00:00",
    "source": "#e8f8b902-6d40-96",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b0af8429-3423-470e-b22c-6febbaf91d6b"
    }
  ]
}

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": "51308bd4-70bb-49d0-8332-8fb77fe15f99"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "305",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2023-10-16T09:18:08.626+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "51308bd4-70bb-49d0-8332-8fb77fe15f99"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOWFhMTE3OTYtNzlmNi00NmMyLWFlYmEtMThlZDkyMjZiMTU0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "891d0852-6fd1-4e08-addc-0c0016e80367"
          }
        ]
      }
    }
  ]
}

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.eyJ1c2VyX2lkIjoiNWI4MzJkZGEtMWRjZi00ZmMyLTg0OGUtYmI4NjljZTI3MDk4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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-10-16T09:18:10.332+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b0af8429-3423-470e-b22c-6febbaf91d6b"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "314",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2023-10-16T09:18:10.393+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b0af8429-3423-470e-b22c-6febbaf91d6b"
    }
  ]
}