eHealth Infrastructure (v2019.5.3)

StructureDefinition: ehealth-careteam - Operation examples

DELETE [base]/CareTeam/4

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

GET [base]/CareTeam?patient=http%3A%2F%2Flocal.ehealth.sundhed.dk%3A31380%2Ftrifork-fhir-server%2FPatient%2F97991

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": "c30c90ee-045c-420e-b662-944ab2524e6d",
  "meta": {
    "lastUpdated": "2019-05-29T08:21:24.429+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://local.ehealth.sundhed.dk:31380/organization/fhir/CareTeam?_format\u003djson\u0026_pretty\u003dtrue\u0026patient\u003dhttp%3A%2F%2Flocal.ehealth.sundhed.dk%3A31380%2Ftrifork-fhir-server%2FPatient%2F97991"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/organization/fhir/CareTeam/10",
      "resource": {
        "resourceType": "CareTeam",
        "id": "10",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T08:21:24.275+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
          ]
        },
        "identifier": [
          {
            "id": "a0b24c01-5fa4-400a-bfd7-e358e138a718"
          }
        ],
        "name": "c2bd199f-a69f-4534-9176-886a205926cc",
        "subject": {
          "reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/97991"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://local.ehealth.sundhed.dk:31380/organization/fhir/CareTeam/8",
      "resource": {
        "resourceType": "CareTeam",
        "id": "8",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T08:21:23.871+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
          ]
        },
        "identifier": [
          {
            "id": "f144cbcb-a448-4671-8c52-2c06f2e92eb0"
          }
        ],
        "name": "7eaaef65-df18-4193-8c66-cdf3004e87c0",
        "subject": {
          "reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/97991"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/CareTeam/12/_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": "CareTeam",
  "id": "12",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T08:21:24.926+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
    ]
  },
  "identifier": [
    {
      "id": "7b606b5c-590c-47e6-9c7f-703514f45448"
    }
  ],
  "name": "804eafd3-b3a9-48b3-acf4-e4eed6ad2781"
}

GET [base]/CareTeam/46

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": "CareTeam",
  "id": "46",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T08:21:31.473+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
    ]
  },
  "identifier": [
    {
      "id": "3b757720-9004-44f3-a5b2-b7cbf3b504c2"
    }
  ],
  "name": "c2138b0d-56f5-4c6c-a648-55706d6f6dfd",
  "subject": {
    "reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/58647"
  },
  "participant": [
    {
      "role": {
        "coding": [
          {
            "system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
            "code": "TBD"
          }
        ]
      },
      "member": {
        "reference": "http://local.ehealth.sundhed.dk:31380/trifork-fhir-server/Patient/58647"
      }
    },
    {
      "role": {
        "coding": [
          {
            "system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
            "code": "TBD"
          }
        ]
      },
      "member": {
        "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/CareTeam/43"
      }
    },
    {
      "role": {
        "coding": [
          {
            "system": "http://ehealth.sundhed.dk/cs/careteam-participant-role",
            "code": "TBD"
          }
        ]
      },
      "member": {
        "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Practitioner/45"
      }
    }
  ],
  "managingOrganization": [
    {
      "reference": "http://local.ehealth.sundhed.dk:31380/organization/fhir/Organization/44"
    }
  ]
}

POST [base]/CareTeam/14/$validate

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": "Parameters",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "CareTeam",
        "id": "14",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-05-29T08:21:25.289+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
          ]
        },
        "identifier": [
          {
            "id": "4e0a7db7-9812-4795-b192-392445918c95"
          }
        ],
        "name": "c6a7e357-624b-4229-a7b9-349300a0f67d"
      }
    }
  ]
}

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\u003eNo issues detected during validation\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": "No issues detected during validation"
    },
    {
      "severity": "information",
      "code": "informational",
      "diagnostics": "No issues detected during validation"
    }
  ]
}

PUT [base]/CareTeam/12

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": "CareTeam",
  "id": "12",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-05-29T08:21:24.746+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
    ]
  },
  "identifier": [
    {
      "id": "7b606b5c-590c-47e6-9c7f-703514f45448"
    }
  ],
  "name": "804eafd3-b3a9-48b3-acf4-e4eed6ad2781"
}

Response

{
  "resourceType": "CareTeam",
  "id": "12",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-05-29T08:21:24.926+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careteam"
    ]
  },
  "identifier": [
    {
      "id": "7b606b5c-590c-47e6-9c7f-703514f45448"
    }
  ],
  "name": "804eafd3-b3a9-48b3-acf4-e4eed6ad2781"
}