eHealth Infrastructure (v2019.5.3)

StructureDefinition: ehealth-practitionerrole - Operation examples

DELETE [base]/PractitionerRole/329

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 23ms\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 23ms"
    }
  ]
}

GET [base]/PractitionerRole?organization=http%3A%2F%2Flocal.ehealth.sundhed.dk%3A31380%2Forganization%2Ffhir%2FOrganization%2F78953

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": "f9c61914-70e4-416c-a444-d7f3c06ee049",
  "meta": {
    "lastUpdated": "2019-05-29T09:14:35.009+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PractitionerRole?_format\u003djson\u0026_pretty\u003dtrue\u0026organization\u003dhttp%3A%2F%2Flocal.ehealth.sundhed.dk%3A31380%2Forganization%2Ffhir%2FOrganization%2F78953"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PractitionerRole/332",
      "resource": {
        "resourceType": "PractitionerRole",
        "id": "332",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T09:14:34.903+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
          ]
        },
        "organization": {
          "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/78953"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/hapi-fhir-server/fhir/PractitionerRole/330",
      "resource": {
        "resourceType": "PractitionerRole",
        "id": "330",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T09:14:34.726+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
          ]
        },
        "organization": {
          "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/78953"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/PractitionerRole/333/_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": "PractitionerRole",
  "id": "333",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T09:14:35.165+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
    ]
  },
  "active": true,
  "organization": {
    "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/18772"
  }
}

POST [base]/PractitionerRole

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": "PractitionerRole",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
    ]
  },
  "organization": {
    "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/95085"
  }
}

Response

{
  "resourceType": "PractitionerRole",
  "id": "328",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T09:14:34.401+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
    ]
  },
  "organization": {
    "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/95085"
  }
}

PUT [base]/PractitionerRole/333

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": "PractitionerRole",
  "id": "333",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T09:14:35.067+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
    ]
  },
  "active": true,
  "organization": {
    "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/18772"
  }
}

Response

{
  "resourceType": "PractitionerRole",
  "id": "333",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T09:14:35.165+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-practitionerrole"
    ]
  },
  "active": true,
  "organization": {
    "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/18772"
  }
}