eHealth Infrastructure (v2020.1)

StructureDefinition: ehealth-practitioner - Operation examples

GET [base]/Practitioner?address-use=work&name=be75e18e-2645-4ce2-811d-279394ad757e

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2Y5Y2RkYzEtYWQ1Ny00ZWI3LWExMTAtNGE2MDY1ZWY5ZWVkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "e9391ed5-11ae-4b6e-80da-7ec4f359e5c2",
  "meta": {
    "lastUpdated": "2020-02-03T14:02:20.547+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.local.ehealth.sundhed.dk/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=be75e18e-2645-4ce2-811d-279394ad757e"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/Practitioner/310",
      "resource": {
        "resourceType": "Practitioner",
        "id": "310",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-02-03T14:02:20.095+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "be75e18e-2645-4ce2-811d-279394ad757e"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "df02a0ab-8c8d-401c-9191-20dc6a27590d",
            "city": "efd92ead-22f0-4817-ab65-98ea7fbece77",
            "state": "dd9527ba-5555-467b-a1b9-a3e81a97774a",
            "postalCode": "8e2b2698-e47d-4dfe-95ba-e9410f2481a6",
            "country": "a5a6b9ca-0619-4aed-9b82-f0bbac3090c7"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.local.ehealth.sundhed.dk/fhir/Practitioner/309",
      "resource": {
        "resourceType": "Practitioner",
        "id": "309",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-02-03T14:02:19.953+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "be75e18e-2645-4ce2-811d-279394ad757e"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "df02a0ab-8c8d-401c-9191-20dc6a27590d",
            "city": "efd92ead-22f0-4817-ab65-98ea7fbece77",
            "state": "dd9527ba-5555-467b-a1b9-a3e81a97774a",
            "postalCode": "8e2b2698-e47d-4dfe-95ba-e9410f2481a6",
            "country": "a5a6b9ca-0619-4aed-9b82-f0bbac3090c7"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/Practitioner/256/_history/1

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWI0YzgyZTktMDFmNS00YWY4LThhZmUtMjdiYmM0NDZkYzRiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvZGVTeXN0ZW0ud3JpdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "256",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-02-04T06:32:55.016+00:00"
  },
  "name": [
    {
      "family": "c378b3b4-1826-48c4-9f05-062fee38850c"
    }
  ]
}

POST [base]/Practitioner

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWI0YzgyZTktMDFmNS00YWY4LThhZmUtMjdiYmM0NDZkYzRiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvZGVTeXN0ZW0ud3JpdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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",
  "name": [
    {
      "family": "c378b3b4-1826-48c4-9f05-062fee38850c"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "256",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-02-04T06:32:55.016+00:00"
  },
  "name": [
    {
      "family": "c378b3b4-1826-48c4-9f05-062fee38850c"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjY1MTg1ZTAtZDRlYy00YjYyLTkyNTktYmZjNzk1ZTM2ZWU3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "a0c40615-f34b-448d-922a-f2821c190cba"
          }
        ]
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTlkZWYxYjUtZmM5MS00NjBkLTk2MTEtMGM4NTNjNjNiZTdiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "179",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-02-03T14:01:47.243+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b406130e-d366-4cdb-bdfc-36eae33c2002"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "179",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-02-03T14:01:47.451+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "b406130e-d366-4cdb-bdfc-36eae33c2002"
    }
  ]
}