LinuxForHealth / FHIR

The LinuxForHealth FHIR® Server and related projects
https://linuxforhealth.github.io/FHIR
Apache License 2.0
332 stars 157 forks source link

$everything operation #1044

Closed hrnagesh-zz closed 3 years ago

hrnagesh-zz commented 4 years ago

Describe the bug A clear and concise description of what the bug is.

Get all resources for a patient using $everything operation fails and returns error.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

{baseURL}/Patient/{id}**/$everything

Expected behavior A clear and concise description of what you expected to happen.

It should return all associated resources for patient

Additional context returns below error

Add any other context about the problem here.
{
    "resourceType": "OperationOutcome",
    "issue": [
        {
            "severity": "fatal",
            "code": "exception",
            "details": {
                "text": "FHIROperationNotFoundException: Operation with name: 'everything:Patient' was not found"
            }
        }
    ]
}
prb112 commented 4 years ago

@hrnagesh the conformance documentation and conformance statement elaborate on the supported FHIR Operations. https://ibm.github.io/FHIR/Conformance/#extended-operations. I'd kindly like to change this to a feature request rather than a bug.

JohnTimm commented 4 years ago

Agreed, this is an enhancement. Patient/$everything is an optional operation that has yet to be implemented.

albertwang-ibm commented 4 years ago

compartment search for one patient. a little bit similar to how we export patient resources of a size 1 group.

JohnTimm commented 4 years ago

@lmsurpre Can we reformat the operation name to something like Patient/$everything?

lmsurpre commented 4 years ago

I also think it would be good to add support for this operation. @hrnagesh, let us know if you'd like to try your hand at adding it.

We already have CompartmentUtil.getCompartmentResourceTypes and CompartmentUtil.getCompartmentResourceTypeInclusionCriteria, so I think it would be a matter of starting from one of the other fhir-operation-* modules and adapting it to:

  1. get the resource types for the given compartment
  2. for each resource type, get the "inclusion criteria" and invoke a corresponding search using FHIRRestHelper.doSearch (probably set a page size of 1000 first and either loop through all the pages or return a "too-costly" error if the total count exceeds this threshold)
  3. put together all the results into one large result bundle

@lmsurpre Can we reformat the operation name to something like Patient/$everything?

we could, but then you'd need to change $validate to Resource/$validate or */$validate and then explain it actually applies to all resource types. in my opinion, the current approach of having a separate column for type is fine. and right above the table it says Type operations are invoked at [base]/[resourceType]/$[operation] ...seems pretty clear to me.

JohnTimm commented 4 years ago

everything:Patient is a non-standard, bi-product of our implementation and not as recognizable as $everything or Patient/$everything for someone looking back in the spec trying to figure out what went wrong. Resource/$validate or even */$validate doesn't bother me as much as everything:Patient. Perhaps we could use part of the original request URI instead of that short name.

csandersdev commented 4 years ago

@lmsurpre @JohnTimm The operation definition for patient-everything-operation has input parameters start and end that pertain to the dates that care was provided. Do you have any suggestions on how to generically identify the field that represents care date for each individual resource type? Some resources like Procedure have a date search parameter that is directly related to care. Some, like the Account resource, don't define a date, but have something that might be related such as the period search parameter. Some, like SupplyRequest have a date parameter, but I'm not sure it is care related. Then, you've got SupplyDelivery which has neither date nor period search param. Do we use just always use the date search parameter if it is available and otherwise ignore start/end date? Do we need some custom mapping for each resource for which parameter represents care date?

The spec is ambiguous about whether the start and end dates are inclusive or exclusive. Thoughts?

There is a _count input parameter that is expected to set page size for a scrolling resultset much like what is done in the search operation. I'm not clear how that would interact with the everything operation. If the operation builds a big bundle and returns it, will the server framework handle the paging? Does the operation need to handle its own paging? I can imagine it being expensive to page through an "everything" bundle.

lmsurpre commented 3 years ago

I'd probably recommend to start simple.

For the start and end dates, maybe just use date which maps to http://hl7.org/fhir/SearchParameter/clinical-date for all of the following resources:

      "AllergyIntolerance",
      "CarePlan",
      "CareTeam",
      "ClinicalImpression",
      "Composition",
      "Consent",
      "DiagnosticReport",
      "Encounter",
      "EpisodeOfCare",
      "FamilyMemberHistory",
      "Flag",
      "Immunization",
      "List",
      "Observation",
      "Procedure",
      "RiskAssessment",
      "SupplyRequest"

If the resource type doesn't have that, then either: A. do not include them in the response (and document that specifying start and end parameters will only yield resources with clinical dates); or B. include ALL such resources in the result (and document that specifying start and end will not reduce the number of resources that are retrieved for resource types with no clinical date)

As for paging, I think an initial implementation could simply leave that as Unsupported for now. If the total number of resources are beyond some threshold, then reject the request and maybe recommend the use of bulk export which is designed for transmitting lots of data.

And finally:

The spec is ambiguous about whether the start and end dates are inclusive or exclusive. Thoughts?

I'm not sure it matters much, but I'd probably err on the side of making them inclusive if its not well-defined. Or more specifically, I'd probably map them to our default search behavior for >= and <= on date range searches (because I recommended to use the search feature under the covers in order to select the resources)

luisgarcc commented 3 years ago

@lmsurpre I'd like to take a shot at implementing this operation, can you assign this issue to me please? Thanks

prb112 commented 3 years ago

Go for it Luis... ping us with questions.

punktilious commented 3 years ago

@luisgarcc please ping me when you get chance so we can discuss the _since parameter.

prb112 commented 3 years ago

Tests

Check with Patient that does not exist

curl --location --request GET 'https://localhost:9443/fhir-server/api/v4/Patient/1/$everything' \ --header 'Content-Type: application/fhir+json' \ --header 'Authorization: Basic ...'

{ "resourceType": "OperationOutcome", "id": "c0-a8-56-16-d3a145a8-6644-472e-93fa-9aa9dea8a503", "issue": [ { "severity": "fatal", "code": "not-found", "details": { "text": "Patient with ID '1' does not exist." }, "expression": [ "" ] } ] }

Check with patient that exists

curl --location --request GET 'https://localhost:9443/fhir-server/api/v4/Patient/1306279a-da55-465f-82b2-a5844cd15802/$everything' \ --header 'Content-Type: application/fhir+json' \ --header 'Authorization: Basic ...'

{ "resourceType": "Bundle", "id": "13e99802-819f-458e-9813-52ecf76050d6", "type": "searchset", "total": 1, "entry": [ { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1306279a-da55-465f-82b2-a5844cd15802", "resource": { "resourceType": "Patient", "id": "1306279a-da55-465f-82b2-a5844cd15802", "meta": { "versionId": "5", "lastUpdated": "2021-03-19T13:18:46.257574Z" }, "name": [ { "family": "Doe", "given": [ "John" ] } ], "telecom": [ { "system": "phone", "value": "555-1122", "use": "home" } ], "birthDate": "1986-06-20" }, "search": { "mode": "match", "score": 1 } } ] }

curl --location --request GET 'https://localhost:9443/fhir-server/api/v4/Patient/1784aa352aa-2bdc10a1-4b4d-405e-a8a1-bd1c19afdca4/$everything?start=2010' \ --header 'Content-Type: application/fhir+json' \ --header 'Authorization: Basic ....'

curl --location --request GET 'https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/$everything?_type=CareTeam,CarePlan' \ --header 'Content-Type: application/fhir+json' \ --header 'Authorization: Basic ....'

{ "resourceType": "Bundle", "id": "856496e3-9994-4d43-870b-59cb7623abed", "type": "searchset", "total": 11, "entry": [ { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "resource": { "resourceType": "Patient", "id": "1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:20:56.971716Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea.Version identifier: master-branch-latest-2-g8e7e92c\n . Person seed: 7105486291024734541 Population seed: 0

" }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName", "valueString": "Graciela518 Badillo851" }, { "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace", "valueAddress": { "city": "Caguas", "state": "Puerto Rico", "country": "PR" } }, { "url": "http://synthetichealth.github.io/synthea/disability-adjusted-life-years", "valueDecimal": 1.6165934938317164 }, { "url": "http://synthetichealth.github.io/synthea/quality-adjusted-life-years", "valueDecimal": 47.383406506168288 }, { "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", "valueCode": "F" }, { "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", "valueCode": "M" } ], "identifier": [ { "system": "https://github.com/synthetichealth/synthea", "value": "bd958c64-56b6-f206-b03d-8f4b8a417215" }, { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "MR", "display": "Medical Record Number" } ], "text": "Medical Record Number" }, "system": "http://hospital.smarthealthit.org", "value": "bd958c64-56b6-f206-b03d-8f4b8a417215" }, { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "SS", "display": "Social Security Number" } ], "text": "Social Security Number" }, "system": "http://hl7.org/fhir/sid/us-ssn", "value": "999-93-6090" }, { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "DL", "display": "Driver's License" } ], "text": "Driver's License" }, "system": "urn:oid:2.16.840.1.113883.4.3.25", "value": "S99913499" }, { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v2-0203", "code": "PPN", "display": "Passport Number" } ], "text": "Passport Number" }, "system": "http://standardhealthrecord.org/fhir/StructureDefinition/passportNumber", "value": "X26583229X" } ], "name": [ { "use": "official", "family": "Acosta403", "given": [ "Antonia30" ], "prefix": [ "Mrs." ] }, { "use": "maiden", "family": "Armenta418", "given": [ "Antonia30" ], "prefix": [ "Mrs." ] } ], "telecom": [ { "system": "phone", "value": "555-457-3489", "use": "home" } ], "gender": "female", "birthDate": "1970-09-06", "address": [ { "extension": [ { "extension": [ { "url": "latitude", "valueDecimal": 41.6497330022825 }, { "url": "longitude", "valueDecimal": -71.17511064024423 } ], "url": "http://hl7.org/fhir/StructureDefinition/geolocation" } ], "line": [ "635 Littel Esplanade Suite 65" ], "city": "Fall River", "state": "Massachusetts", "postalCode": "02790", "country": "US" } ], "maritalStatus": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/v3-MaritalStatus", "code": "M", "display": "M" } ], "text": "M" }, "multipleBirthBoolean": false, "communication": [ { "language": { "coding": [ { "system": "urn:ietf:bcp:47", "code": "es", "display": "Spanish" } ], "text": "Spanish" } } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CareTeam/1785facb358-059fe85e-c8ef-42c5-b15e-d8d2a599660d", "resource": { "resourceType": "CareTeam", "id": "1785facb358-059fe85e-c8ef-42c5-b15e-d8d2a599660d", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:20:57.303926Z" }, "status": "active", "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb357-403dd865-8277-4097-8c89-244a1d0a416e" }, "period": { "start": "1989-11-05T02:33:36-07:00" }, "participant": [ { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "116154003", "display": "Patient" } ], "text": "Patient" } ], "member": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "display": "Mrs. Antonia30 Acosta403" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "223366009", "display": "Healthcare professional (occupation)" } ], "text": "Healthcare professional (occupation)" } ], "member": { "reference": "Practitioner/1785facb357-de045fc9-2f2e-4632-8479-a7a9b5ee28f2", "display": "Dr. Aubrey96 Boyle917" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "224891009", "display": "Healthcare services (qualifier value)" } ], "text": "Healthcare services (qualifier value)" } ], "member": { "reference": "Organization/1785facb357-ec413c85-8622-40b2-87f5-53421ca2b105", "display": "PRIMA CARE PC" } } ], "reasonCode": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "59621000", "display": "Hypertension" } ], "text": "Hypertension" } ], "managingOrganization": [ { "reference": "Organization/1785facb357-ec413c85-8622-40b2-87f5-53421ca2b105", "display": "PRIMA CARE PC" } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CareTeam/1785facb359-27400a15-73e3-4b92-8a46-5e0a418b5459", "resource": { "resourceType": "CareTeam", "id": "1785facb359-27400a15-73e3-4b92-8a46-5e0a418b5459", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:00.498839Z" }, "status": "active", "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb359-1a328ec7-d402-463f-991f-3a6f082eb6ea" }, "period": { "start": "2006-02-05T02:33:36-07:00" }, "participant": [ { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "116154003", "display": "Patient" } ], "text": "Patient" } ], "member": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "display": "Mrs. Antonia30 Acosta403" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "223366009", "display": "Healthcare professional (occupation)" } ], "text": "Healthcare professional (occupation)" } ], "member": { "reference": "Practitioner/1785facb357-de045fc9-2f2e-4632-8479-a7a9b5ee28f2", "display": "Dr. Aubrey96 Boyle917" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "224891009", "display": "Healthcare services (qualifier value)" } ], "text": "Healthcare services (qualifier value)" } ], "member": { "reference": "Organization/1785facb357-ec413c85-8622-40b2-87f5-53421ca2b105", "display": "PRIMA CARE PC" } } ], "reasonCode": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "44054006", "display": "Diabetes" } ], "text": "Diabetes" } ], "managingOrganization": [ { "reference": "Organization/1785facb357-ec413c85-8622-40b2-87f5-53421ca2b105", "display": "PRIMA CARE PC" } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CareTeam/1785facb35b-15e5436b-3925-4cbc-b49c-49ebdcae62c6", "resource": { "resourceType": "CareTeam", "id": "1785facb35b-15e5436b-3925-4cbc-b49c-49ebdcae62c6", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:07.190868Z" }, "status": "inactive", "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb35b-5f13dff7-c45e-4209-91f4-b6541d04e895" }, "period": { "start": "2013-04-05T03:59:36-06:00", "end": "2013-04-26T04:25:36-06:00" }, "participant": [ { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "116154003", "display": "Patient" } ], "text": "Patient" } ], "member": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "display": "Mrs. Antonia30 Acosta403" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "223366009", "display": "Healthcare professional (occupation)" } ], "text": "Healthcare professional (occupation)" } ], "member": { "reference": "Practitioner/1785facb358-a89dd0e2-afe0-4295-aac4-2118e94f9fb2", "display": "Dr. Carl856 Halvorson124" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "224891009", "display": "Healthcare services (qualifier value)" } ], "text": "Healthcare services (qualifier value)" } ], "member": { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } } ], "reasonCode": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "284549007", "display": "Laceration of hand" } ], "text": "Laceration of hand" } ], "managingOrganization": [ { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CareTeam/1785facb360-0cfc2438-1b28-4062-8815-4760510d9cfa", "resource": { "resourceType": "CareTeam", "id": "1785facb360-0cfc2438-1b28-4062-8815-4760510d9cfa", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:21.834302Z" }, "status": "inactive", "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb360-658e88b4-9f34-4c90-ae91-96d80c2d4dbd" }, "period": { "start": "2020-02-24T02:46:36-07:00", "end": "2020-02-24T03:20:36-07:00" }, "participant": [ { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "116154003", "display": "Patient" } ], "text": "Patient" } ], "member": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "display": "Mrs. Antonia30 Acosta403" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "223366009", "display": "Healthcare professional (occupation)" } ], "text": "Healthcare professional (occupation)" } ], "member": { "reference": "Practitioner/1785facb358-a89dd0e2-afe0-4295-aac4-2118e94f9fb2", "display": "Dr. Carl856 Halvorson124" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "224891009", "display": "Healthcare services (qualifier value)" } ], "text": "Healthcare services (qualifier value)" } ], "member": { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } } ], "reasonCode": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "840544004", "display": "Suspected COVID-19" } ], "text": "Suspected COVID-19" } ], "managingOrganization": [ { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CareTeam/1785facb360-4be23acc-802d-4154-afde-36b783bc9ef4", "resource": { "resourceType": "CareTeam", "id": "1785facb360-4be23acc-802d-4154-afde-36b783bc9ef4", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:21.883265Z" }, "status": "inactive", "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb360-658e88b4-9f34-4c90-ae91-96d80c2d4dbd" }, "period": { "start": "2020-02-24T03:20:36-07:00", "end": "2020-03-13T04:20:36-06:00" }, "participant": [ { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "116154003", "display": "Patient" } ], "text": "Patient" } ], "member": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139", "display": "Mrs. Antonia30 Acosta403" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "223366009", "display": "Healthcare professional (occupation)" } ], "text": "Healthcare professional (occupation)" } ], "member": { "reference": "Practitioner/1785facb358-a89dd0e2-afe0-4295-aac4-2118e94f9fb2", "display": "Dr. Carl856 Halvorson124" } }, { "role": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "224891009", "display": "Healthcare services (qualifier value)" } ], "text": "Healthcare services (qualifier value)" } ], "member": { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } } ], "reasonCode": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "840539006", "display": "COVID-19" } ], "text": "COVID-19" } ], "managingOrganization": [ { "reference": "Organization/1785facb358-67ebbb6a-3db8-492f-98d5-ccfd22b12bba", "display": "SAINT ANNE'S HOSPITAL" } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CarePlan/1785facb358-90a68853-23e5-46a6-be5e-3705365178a8", "resource": { "resourceType": "CarePlan", "id": "1785facb358-90a68853-23e5-46a6-be5e-3705365178a8", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:20:57.345007Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Care Plan for Lifestyle education regarding hypertension.
Activities:
Care plan is meant to treat Hypertension.
" }, "status": "active", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "443402002", "display": "Lifestyle education regarding hypertension" } ], "text": "Lifestyle education regarding hypertension" } ], "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb357-403dd865-8277-4097-8c89-244a1d0a416e" }, "period": { "start": "1989-11-05T02:33:36-07:00" }, "careTeam": [ { "reference": "CareTeam/1785facb358-059fe85e-c8ef-42c5-b15e-d8d2a599660d" } ], "addresses": [ { "reference": "Condition/1785facb357-9f8961a5-adbd-45c4-b4a3-58485921ffc1" } ], "activity": [ { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "386463000", "display": "Prescribed activity/exercise education" } ], "text": "Prescribed activity/exercise education" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "413473000", "display": "Counseling about alcohol consumption" } ], "text": "Counseling about alcohol consumption" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "1151000175103", "display": "Dietary approaches to stop hypertension diet" } ], "text": "Dietary approaches to stop hypertension diet" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "225323000", "display": "Smoking cessation education" } ], "text": "Smoking cessation education" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CarePlan/1785facb359-512ca051-d24a-4a08-a307-b90479c5ea86", "resource": { "resourceType": "CarePlan", "id": "1785facb359-512ca051-d24a-4a08-a307-b90479c5ea86", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:00.526709Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Care Plan for Diabetes self management plan.
Activities:
Care plan is meant to treat Diabetes." }, "status": "active", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "698360004", "display": "Diabetes self management plan" } ], "text": "Diabetes self management plan" } ], "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb359-1a328ec7-d402-463f-991f-3a6f082eb6ea" }, "period": { "start": "2006-02-05T02:33:36-07:00" }, "careTeam": [ { "reference": "CareTeam/1785facb359-27400a15-73e3-4b92-8a46-5e0a418b5459" } ], "addresses": [ { "reference": "Condition/1785facb359-eb9c98aa-28fe-4922-a87e-73c3eb1ac1a0" } ], "activity": [ { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "160670007", "display": "Diabetic diet" } ], "text": "Diabetic diet" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "229065009", "display": "Exercise therapy" } ], "text": "Exercise therapy" }, "status": "in-progress", "location": { "display": "PRIMA CARE PC" } } } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CarePlan/1785facb35b-3cbaf942-20f1-488e-9ded-09df3c20640e", "resource": { "resourceType": "CarePlan", "id": "1785facb35b-3cbaf942-20f1-488e-9ded-09df3c20640e", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:07.21387Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Care Plan for Wound care.
Activities:
Care plan is meant to treat Laceration of hand." }, "status": "completed", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "225358003", "display": "Wound care" } ], "text": "Wound care" } ], "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb35b-5f13dff7-c45e-4209-91f4-b6541d04e895" }, "period": { "start": "2013-04-05T03:59:36-06:00", "end": "2013-04-26T04:25:36-06:00" }, "careTeam": [ { "reference": "CareTeam/1785facb35b-15e5436b-3925-4cbc-b49c-49ebdcae62c6" } ], "addresses": [ { "reference": "Condition/1785facb35b-5c996b9c-7524-41fc-8fa5-eeef4d056e00" } ], "activity": [ { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "385949008", "display": "Dressing change management" } ], "text": "Dressing change management" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "439830001", "display": "Behavior to prevent infection" } ], "text": "Behavior to prevent infection" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CarePlan/1785facb360-639ea6e3-efeb-4f36-9359-6059d42296b9", "resource": { "resourceType": "CarePlan", "id": "1785facb360-639ea6e3-efeb-4f36-9359-6059d42296b9", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:21.858644Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Care Plan for Infectious disease care plan (record artifact).
Activities:
Care plan is meant to treat Suspected COVID-19." }, "status": "completed", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "736376001", "display": "Infectious disease care plan (record artifact)" } ], "text": "Infectious disease care plan (record artifact)" } ], "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb360-658e88b4-9f34-4c90-ae91-96d80c2d4dbd" }, "period": { "start": "2020-02-24T02:46:36-07:00", "end": "2020-02-24T03:20:36-07:00" }, "careTeam": [ { "reference": "CareTeam/1785facb360-0cfc2438-1b28-4062-8815-4760510d9cfa" } ], "addresses": [ { "reference": "Condition/1785facb360-12399ec1-d1d8-4b5c-9bfb-da367034fecc" } ], "activity": [ { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "409524006", "display": "Airborne precautions (procedure)" } ], "text": "Airborne precautions (procedure)" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "409526008", "display": "Personal protective equipment (physical object)" } ], "text": "Personal protective equipment (physical object)" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } } ] }, "search": { "mode": "match", "score": 1 } }, { "fullUrl": "https://localhost:9443/fhir-server/api/v4/Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139/CarePlan/1785facb360-e8f3ece9-41bf-4335-a83d-c88ada7af931", "resource": { "resourceType": "CarePlan", "id": "1785facb360-e8f3ece9-41bf-4335-a83d-c88ada7af931", "meta": { "versionId": "1", "lastUpdated": "2021-03-23T15:21:21.911227Z" }, "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Care Plan for Infectious disease care plan (record artifact).
Activities:
Care plan is meant to treat COVID-19." }, "status": "completed", "intent": "order", "category": [ { "coding": [ { "system": "http://snomed.info/sct", "code": "736376001", "display": "Infectious disease care plan (record artifact)" } ], "text": "Infectious disease care plan (record artifact)" } ], "subject": { "reference": "Patient/1785facb357-2fa20d95-d828-4c60-a972-2707c82f4139" }, "encounter": { "reference": "Encounter/1785facb360-658e88b4-9f34-4c90-ae91-96d80c2d4dbd" }, "period": { "start": "2020-02-24T03:20:36-07:00", "end": "2020-03-13T04:20:36-06:00" }, "careTeam": [ { "reference": "CareTeam/1785facb360-4be23acc-802d-4154-afde-36b783bc9ef4" } ], "addresses": [ { "reference": "Condition/1785facb360-00dcd11b-5732-43a7-bdff-6985e4f78114" } ], "activity": [ { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "409524006", "display": "Airborne precautions (procedure)" } ], "text": "Airborne precautions (procedure)" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } }, { "detail": { "code": { "coding": [ { "system": "http://snomed.info/sct", "code": "361235007", "display": "Isolation of infected patient (procedure)" } ], "text": "Isolation of infected patient (procedure)" }, "status": "completed", "location": { "display": "SAINT ANNE'S HOSPITAL" } } } ] }, "search": { "mode": "match", "score": 1 } } ] }

prb112 commented 3 years ago

Opened an issue for the Deleted Patient

prb112 commented 3 years ago

QA complete. issues identified will be treated in other issues