eHealth Infrastructure (v2020.6.1)

StructureDefinition: ehealth-practitioner - Operation examples

GET [base]/Practitioner?address-use=work&name=4d5ce954-5a73-4d4b-aee9-212cb5b3f2f1

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjhmZGQzMDQtZGFlMy00MjE1LWJkNDMtNmRlYjljMWZlYmFmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "2fbb9741-2e85-4e51-bf93-258d36e79c93",
  "meta": {
    "lastUpdated": "2020-08-05T10:56:56.460+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-687.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=4d5ce954-5a73-4d4b-aee9-212cb5b3f2f1"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-687.local/fhir/Practitioner/364",
      "resource": {
        "resourceType": "Practitioner",
        "id": "364",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-08-05T10:56:56.141+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "4d5ce954-5a73-4d4b-aee9-212cb5b3f2f1"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "234783ea-e862-4b48-97f2-38cf34e4665a",
            "city": "4f05aba4-97bb-4fe0-bd2d-681ec64e419e",
            "state": "a2c9ed16-b952-4dce-aa20-4e956ea333b7",
            "postalCode": "d814726b-8969-4310-8183-5b3a5975ea5e",
            "country": "0745f240-686b-4894-bb47-c6a149f87249"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-687.local/fhir/Practitioner/363",
      "resource": {
        "resourceType": "Practitioner",
        "id": "363",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-08-05T10:56:56.039+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "4d5ce954-5a73-4d4b-aee9-212cb5b3f2f1"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "234783ea-e862-4b48-97f2-38cf34e4665a",
            "city": "4f05aba4-97bb-4fe0-bd2d-681ec64e419e",
            "state": "a2c9ed16-b952-4dce-aa20-4e956ea333b7",
            "postalCode": "d814726b-8969-4310-8183-5b3a5975ea5e",
            "country": "0745f240-686b-4894-bb47-c6a149f87249"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZGFmNDBiMDgtMTJhMy00MmNiLWE5NjctMGYwZjE4OWY2MDdlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "320",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-08-05T10:56:47.793+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "d3105317-65ca-4d54-b8b4-87ec562693b9"
    }
  ]
}

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/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",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "ffa2ce47-c18d-4639-aa1c-fa452d4049b1"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "311",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-08-05T10:56:46.127+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "ffa2ce47-c18d-4639-aa1c-fa452d4049b1"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjVmY2ExZGMtMTkwNC00MzBkLWFmMTMtMDgwNTFlYmJlNzFiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "d2b5884f-aac9-441d-bf74-0a112be71c30"
          }
        ]
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZGFmNDBiMDgtMTJhMy00MmNiLWE5NjctMGYwZjE4OWY2MDdlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "320",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-08-05T10:56:47.698+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "d3105317-65ca-4d54-b8b4-87ec562693b9"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "320",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-08-05T10:56:47.793+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "d3105317-65ca-4d54-b8b4-87ec562693b9"
    }
  ]
}