eHealth Infrastructure
2.3.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=37e5ac83-3335-4dff-9755-264769658f65

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjM3MDBkNTYtYjNhMy00ZjFjLTlhNmItZDY4NDZkNDIwNGQ2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5zZWFyY2giXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
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": "1eb8e30b-76c7-4c41-883b-ff7b7c3ffc75",
  "meta": {
    "lastUpdated": "2022-09-16T08:24:52.734+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://organization.cit-organization-1015.local/fhir/Practitioner?_format=json&_pretty=true&address-use=work&name=37e5ac83-3335-4dff-9755-264769658f65"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://organization.cit-organization-1015.local/fhir/Practitioner/374",
      "resource": {
        "resourceType": "Practitioner",
        "id": "374",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-09-16T08:24:52.314+00:00",
          "source": "#64f91d81-917b-90",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "37e5ac83-3335-4dff-9755-264769658f65"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "b6de69cb-7480-4f03-9db3-1ae6d2ffa60c",
            "city": "c25f3074-dfc2-44fd-aa96-fff6fe98c210",
            "state": "4410afda-34e9-4247-b05b-ea6aea322607",
            "postalCode": "9b722d20-e273-4d74-9549-1bad2896e932",
            "country": "4d119d2c-76a8-40af-a23a-cdb9f1d20a83"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "https://organization.cit-organization-1015.local/fhir/Practitioner/375",
      "resource": {
        "resourceType": "Practitioner",
        "id": "375",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2022-09-16T08:24:52.412+00:00",
          "source": "#37e4b911-92a6-94",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "name": [
          {
            "family": "37e5ac83-3335-4dff-9755-264769658f65"
          }
        ],
        "address": [
          {
            "use": "work",
            "text": "b6de69cb-7480-4f03-9db3-1ae6d2ffa60c",
            "city": "c25f3074-dfc2-44fd-aa96-fff6fe98c210",
            "state": "4410afda-34e9-4247-b05b-ea6aea322607",
            "postalCode": "9b722d20-e273-4d74-9549-1bad2896e932",
            "country": "4d119d2c-76a8-40af-a23a-cdb9f1d20a83"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYTU4ZWE2ODctYzhlNy00NzFkLWEyMjAtMDVlMGMyZjEzZTM3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "331",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-09-16T08:24:42.264+00:00",
    "source": "#76127522-921d-95",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "ddc789f5-146a-47bb-8883-1e805b3083a0"
    }
  ]
}

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": "0444996e-856c-4553-a598-4a9dd88c3be3"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "322",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-09-16T08:24:40.619+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "0444996e-856c-4553-a598-4a9dd88c3be3"
    }
  ]
}

POST [base]/Practitioner/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTY5YWY0MWUtMWQ0Yy00NjNmLWE4ZTMtMDZiMjcwZjQ3MjYyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "cd06555e-9420-4fcc-8fe8-4d619f169a89"
          }
        ]
      }
    }
  ]
}

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.eyJ1c2VyX2lkIjoiYTU4ZWE2ODctYzhlNy00NzFkLWEyMjAtMDVlMGMyZjEzZTM3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIlByYWN0aXRpb25lci53cml0ZSIsIlByYWN0aXRpb25lci5yZWFkIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
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": "331",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-09-16T08:24:42.178+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "ddc789f5-146a-47bb-8883-1e805b3083a0"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "331",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2022-09-16T08:24:42.264+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "ddc789f5-146a-47bb-8883-1e805b3083a0"
    }
  ]
}