eHealth Infrastructure (v2020.8)

StructureDefinition: ehealth-practitioner - Operation examples

GET [base]/Practitioner?address-use=work&name=7a8597d5-8ec1-4bd8-86e8-aff1caee826a

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzk4ODY1YWEtZTRiNC00N2JlLWFmYjItYmQ4NGEzYWZmZTY4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "f0c3c8c0-72f9-4cab-be36-58fe6d384528",
  "meta": {
    "lastUpdated": "2020-12-21T13:24:49.984+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-751.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=7a8597d5-8ec1-4bd8-86e8-aff1caee826a"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-751.local/fhir/Practitioner/369",
      "resource": {
        "resourceType": "Practitioner",
        "id": "369",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-12-21T13:24:49.599+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "7a8597d5-8ec1-4bd8-86e8-aff1caee826a"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "37a6a396-f25c-4fb6-90c4-87db1e2564bf",
            "city": "00e23953-3c57-46fc-89fb-e0f0324bdc4e",
            "state": "07639ae8-4d6d-425d-a2a8-864fd6c7537d",
            "postalCode": "05ed0bc7-0cc9-49da-9161-26be5c0334aa",
            "country": "76aa5824-039b-4fd2-b5cd-f1ab53c61e4c"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-751.local/fhir/Practitioner/368",
      "resource": {
        "resourceType": "Practitioner",
        "id": "368",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-12-21T13:24:49.494+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "7a8597d5-8ec1-4bd8-86e8-aff1caee826a"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "37a6a396-f25c-4fb6-90c4-87db1e2564bf",
            "city": "00e23953-3c57-46fc-89fb-e0f0324bdc4e",
            "state": "07639ae8-4d6d-425d-a2a8-864fd6c7537d",
            "postalCode": "05ed0bc7-0cc9-49da-9161-26be5c0334aa",
            "country": "76aa5824-039b-4fd2-b5cd-f1ab53c61e4c"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNDE3YmQyNjctNTFhYi00YjMyLWFlYzAtMzM2MWY5MDg4NTI1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Practitioner",
  "id": "325",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-12-21T13:24:41.440+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "9adf3814-cf13-43f5-839a-263d8e2d310c"
    }
  ]
}

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.0.2 (FHIR Client; FHIR 3.0.2/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": "6a26ebed-237f-4d8f-8476-f356a05af2f0"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "316",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-12-21T13:24:39.760+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "6a26ebed-237f-4d8f-8476-f356a05af2f0"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDZjZTFiMDktM2NmMS00Y2Q1LWFkNjQtZmI4YmM3OGE1MzE5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/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": "a42d5cde-e628-4495-b5bd-6e85379a1cf5"
          }
        ]
      }
    }
  ]
}

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

Header

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

Body:

{
  "resourceType": "Practitioner",
  "id": "325",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-12-21T13:24:41.359+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "9adf3814-cf13-43f5-839a-263d8e2d310c"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "325",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2020-12-21T13:24:41.440+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "9adf3814-cf13-43f5-839a-263d8e2d310c"
    }
  ]
}