eHealth Infrastructure
2.4.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=153feea7-a54c-442a-a865-f6815faf1ffb

Header

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

Response

{
  "resourceType": "Bundle",
  "id": "2e6b3229-d426-454b-86ac-50c368d93014",
  "meta": {
    "lastUpdated": "2022-10-10T14:35:10.950+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-1022.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=153feea7-a54c-442a-a865-f6815faf1ffb"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-1022.local/fhir/Practitioner/361",
      "resource": {
        "resourceType": "Practitioner",
        "id": "361",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-10-10T14:35:10.612+00:00",
          "source": "#04181d1a-fa01-9a",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "153feea7-a54c-442a-a865-f6815faf1ffb"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "d89faa42-76a4-469e-b069-14027d29f17e",
            "city": "5b75b172-c000-4950-a5ff-5da4068e2fb8",
            "state": "a4975fd7-7b64-4c1f-8716-2835a5602650",
            "postalCode": "aab2c730-f7a6-464d-a8b7-e951ad3f04cb",
            "country": "0a809933-09f6-4e96-a6b5-2fce47deb4c1"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-1022.local/fhir/Practitioner/362",
      "resource": {
        "resourceType": "Practitioner",
        "id": "362",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-10-10T14:35:10.727+00:00",
          "source": "#bed3a045-6d30-96",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "153feea7-a54c-442a-a865-f6815faf1ffb"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "d89faa42-76a4-469e-b069-14027d29f17e",
            "city": "5b75b172-c000-4950-a5ff-5da4068e2fb8",
            "state": "a4975fd7-7b64-4c1f-8716-2835a5602650",
            "postalCode": "aab2c730-f7a6-464d-a8b7-e951ad3f04cb",
            "country": "0a809933-09f6-4e96-a6b5-2fce47deb4c1"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

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

Response

{
  "resourceType": "Practitioner",
  "id": "318",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-10-10T14:35:02.555+00:00",
    "source": "#e24c0821-a945-94",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "fab8a6b9-69b5-40c4-9a03-dbeef28b03b1"
    }
  ]
}

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.1.0 (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": "d896826d-9518-42ac-be8e-7227a35d4450"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "309",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-10-10T14:35:00.841+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "d896826d-9518-42ac-be8e-7227a35d4450"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDkyMDM0MTYtZWFlMC00MjUwLWEwN2QtMjUzZWQ3YzNjMTFhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.1.0 (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": "ab69036d-7a3d-42db-a4bf-acb4a4aa24bb"
          }
        ]
      }
    }
  ]
}

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/318

Header

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

Body:

{
  "resourceType": "Practitioner",
  "id": "318",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-10-10T14:35:02.407+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "fab8a6b9-69b5-40c4-9a03-dbeef28b03b1"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "318",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-10-10T14:35:02.555+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "fab8a6b9-69b5-40c4-9a03-dbeef28b03b1"
    }
  ]
}