eHealth Infrastructure (v2019.5.3)

StructureDefinition: ehealth-practitioner - Operation examples

DELETE [base]/Practitioner/34

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "OperationOutcome",
  "text": {
    "status": "generated",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003ch1\u003eOperation Outcome\u003c/h1\u003e\u003ctable border\u003d\"0\"\u003e\u003ctr\u003e\u003ctd style\u003d\"font-weight: bold;\"\u003eINFORMATION\u003c/td\u003e\u003ctd\u003e[]\u003c/td\u003e\u003ctd\u003e\u003cpre\u003eSuccessfully deleted 1 resource(s) in 12ms\u003c/pre\u003e\u003c/td\u003e\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\u003c/tr\u003e\r\n\t\t\u003c/table\u003e\r\n\t\u003c/div\u003e"
  },
  "issue": [
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "Successfully deleted 1 resource(s) in 12ms"
    }
  ]
}

GET [base]/Practitioner?identifier=urn%3Aoid%3A1.2.208.176.1.2%7C9157555b-bfb3-4a86-8d4d-31f7bf41cc34

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "01f33e6d-bab1-417c-86fa-6976ec778a67",
  "meta": {
    "lastUpdated": "2019-05-29T08:21:30.593+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner?_format\u003djson\u0026_pretty\u003dtrue\u0026identifier\u003durn%3Aoid%3A1.2.208.176.1.2%7C9157555b-bfb3-4a86-8d4d-31f7bf41cc34"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/38",
      "resource": {
        "resourceType": "Practitioner",
        "id": "38",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T08:21:30.134+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "identifier": [
          {
            "system": "urn:oid:1.2.208.176.1.2",
            "value": "9157555b-bfb3-4a86-8d4d-31f7bf41cc34"
          }
        ],
        "name": [
          {
            "family": "9a630558-23e7-45dd-bdcb-32ea0681cacc"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/40",
      "resource": {
        "resourceType": "Practitioner",
        "id": "40",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T08:21:30.425+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
          ]
        },
        "identifier": [
          {
            "system": "urn:oid:1.2.208.176.1.2",
            "value": "9157555b-bfb3-4a86-8d4d-31f7bf41cc34"
          }
        ],
        "name": [
          {
            "family": "b7553bff-12b1-4303-8040-62059414b721"
          }
        ]
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Practitioner",
  "id": "42",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T08:21:30.904+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3877b51c-f439-4fa0-a1e8-3d0cf5424096"
    }
  ]
}

POST [base]/Practitioner

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.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": "05045b8f-25c6-41d4-a11e-b1654b2880ac"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "33",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T08:21:29.353+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "05045b8f-25c6-41d4-a11e-b1654b2880ac"
    }
  ]
}

PUT [base]/Practitioner/42

Header

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

Body:

{
  "resourceType": "Practitioner",
  "id": "42",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T08:21:30.793+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3877b51c-f439-4fa0-a1e8-3d0cf5424096"
    }
  ]
}

Response

{
  "resourceType": "Practitioner",
  "id": "42",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T08:21:30.904+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitioner"
    ]
  },
  "name": [
    {
      "family": "3877b51c-f439-4fa0-a1e8-3d0cf5424096"
    }
  ]
}