eHealth Infrastructure
2022.1 - 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=1d5e81ba-705a-4594-9727-9c579ab988bc

Header

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

Response

{
  "resourceType": "Bundle",
  "id": "12e6b8e4-cc93-4eb2-be67-b98e01f7b850",
  "meta": {
    "lastUpdated": "2021-12-21T14:52:46.214+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-884.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=1d5e81ba-705a-4594-9727-9c579ab988bc"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-884.local/fhir/Practitioner/375",
      "resource": {
        "resourceType": "Practitioner",
        "id": "375",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2021-12-21T14:52:45.802+00:00",
          "source": "#ff23f5b2-e497-45",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "1d5e81ba-705a-4594-9727-9c579ab988bc"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "c2eccdeb-cad2-4616-832f-83075e42e161",
            "city": "e085a5fc-0bfc-45e7-b274-73d92bfb5a03",
            "state": "d8bfedc0-385e-40ce-b8a4-835f7e790cf9",
            "postalCode": "ec50251a-381c-49b3-9100-2b109ce3456a",
            "country": "03216d11-0f83-48c8-9c72-21f1be434e73"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-884.local/fhir/Practitioner/374",
      "resource": {
        "resourceType": "Practitioner",
        "id": "374",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2021-12-21T14:52:45.527+00:00",
          "source": "#ec72ac60-8022-47",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "1d5e81ba-705a-4594-9727-9c579ab988bc"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "c2eccdeb-cad2-4616-832f-83075e42e161",
            "city": "e085a5fc-0bfc-45e7-b274-73d92bfb5a03",
            "state": "d8bfedc0-385e-40ce-b8a4-835f7e790cf9",
            "postalCode": "ec50251a-381c-49b3-9100-2b109ce3456a",
            "country": "03216d11-0f83-48c8-9c72-21f1be434e73"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

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

Response

{
  "resourceType": "Practitioner",
  "id": "331",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2021-12-21T14:52:32.843+00:00",
    "source": "#42f3a73b-108d-4a",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "14e762dd-39f8-4330-9036-ab74c9bdf7fd"
    }
  ]
}

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/5.4.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": "171eb280-e489-40ca-97ca-b24f3027f9dc"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "322",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-12-21T14:52:30.406+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "171eb280-e489-40ca-97ca-b24f3027f9dc"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTc4ZDE4YmItZjU3MS00OGQ3LTliZWYtOTY3MzJjOGQ1MjJkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.4.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": "c41c1e3a-f0e5-4b95-96c0-60ef34b38980"
          }
        ]
      }
    }
  ]
}

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

Header

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

Body:

{
  "resourceType": "Practitioner",
  "id": "331",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-12-21T14:52:32.724+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "14e762dd-39f8-4330-9036-ab74c9bdf7fd"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "331",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2021-12-21T14:52:32.843+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "14e762dd-39f8-4330-9036-ab74c9bdf7fd"
    }
  ]
}