eHealth Infrastructure (v2019.5)

StructureDefinition: ehealth-clinicalimpression - Operation examples

GET [base]/ClinicalImpression?subject=Patient%2F3835

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": "06bf81f6-2e5d-4c99-a549-afa8ead36d41",
  "meta": {
    "lastUpdated": "2019-03-11T13:26:28.806+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://localhost:31000/hapi-fhir-server/fhir/ClinicalImpression?_format\u003djson\u0026_pretty\u003dtrue\u0026subject\u003dPatient%2F3835"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/ClinicalImpression/3852",
      "resource": {
        "resourceType": "ClinicalImpression",
        "id": "3852",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:26:28.406+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
          ]
        },
        "status": "draft",
        "code": {
          "coding": [
            {
              "code": "Code"
            }
          ]
        },
        "subject": {
          "reference": "Patient/3835"
        },
        "context": {
          "reference": "EpisodeOfCare/3851"
        }
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/ClinicalImpression/3840",
      "resource": {
        "resourceType": "ClinicalImpression",
        "id": "3840",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:26:26.128+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
          ]
        },
        "status": "draft",
        "code": {
          "coding": [
            {
              "code": "Code"
            }
          ]
        },
        "subject": {
          "reference": "Patient/3835"
        },
        "context": {
          "reference": "EpisodeOfCare/3839"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/ClinicalImpression/3864/_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": "ClinicalImpression",
  "id": "3864",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:26:30.509+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
    ]
  },
  "status": "entered-in-error",
  "code": {
    "coding": [
      {
        "code": "Code"
      }
    ]
  },
  "subject": {
    "reference": "Patient/3859"
  },
  "context": {
    "reference": "EpisodeOfCare/3863"
  }
}

POST [base]/ClinicalImpression

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": "ClinicalImpression",
  "meta": {
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
    ]
  },
  "status": "draft",
  "code": {
    "coding": [
      {
        "code": "Code"
      }
    ]
  },
  "subject": {
    "reference": "Patient/3823"
  },
  "context": {
    "reference": "EpisodeOfCare/3827"
  }
}

Response

{
  "resourceType": "ClinicalImpression",
  "id": "3828",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:26:24.685+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
    ]
  },
  "status": "draft",
  "code": {
    "coding": [
      {
        "code": "Code"
      }
    ]
  },
  "subject": {
    "reference": "Patient/3823"
  },
  "context": {
    "reference": "EpisodeOfCare/3827"
  }
}

PUT [base]/ClinicalImpression/3864

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": "ClinicalImpression",
  "id": "3864",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:26:30.422+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
    ]
  },
  "status": "entered-in-error",
  "code": {
    "coding": [
      {
        "code": "Code"
      }
    ]
  },
  "subject": {
    "reference": "Patient/3859"
  },
  "context": {
    "reference": "EpisodeOfCare/3863"
  }
}

Response

{
  "resourceType": "ClinicalImpression",
  "id": "3864",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:26:30.509+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
    ]
  },
  "status": "entered-in-error",
  "code": {
    "coding": [
      {
        "code": "Code"
      }
    ]
  },
  "subject": {
    "reference": "Patient/3859"
  },
  "context": {
    "reference": "EpisodeOfCare/3863"
  }
}