From 68a9d44ac4b3e3351777cc3c2a0063bd0d970683 Mon Sep 17 00:00:00 2001 From: Ratheesh K R Date: Wed, 22 May 2024 18:36:20 +0530 Subject: [PATCH] docs: update test reults --- .../src/2024-05-22/README.md | 48 + ...hir-fixture-shinny-bronx-unhappy-path.json | 1981 +++++++++++++++++ ...hinny-healtheconnections-unhappy-path.json | 1231 ++++++++++ ...fhir-fixture-shinny-impl-guide-sample.json | 439 ++++ .../fhir-fixture-unhappy-path-01.json | 439 ++++ .../fhir-service.test-sample.postman.json | 239 ++ .../src/2024-05-22/fhir-service.test.http | 154 ++ .../regression-test-prime/regression-test.sh | 2 +- .../fhir-services/regression-test-results.md | 2 +- 9 files changed, 4533 insertions(+), 2 deletions(-) create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/README.md create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-bronx-unhappy-path.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-healtheconnections-unhappy-path.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-impl-guide-sample.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-unhappy-path-01.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test-sample.postman.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test.http diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/README.md b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/README.md new file mode 100644 index 0000000..0131dfd --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/README.md @@ -0,0 +1,48 @@ +## Steps to test the .http files through CLI + +```bash +$ npm install -g httpyac +$ cd assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/YYYY-MM-DD +$ HOST=https://synthetic.fhir.api.devl.techbd.org httpyac send fhir-service.test.http --all +``` + +For more complete example, see [regression-test.sh](../../../regression-test.sh) + +### `fhir-service.test.http` + +This is the REST-API execution file performs the actual test. It interacts +with two primary API endpoints (`/Bundle/$validate` & `/Bundle/`) to ensure they are +functioning as expected. + +#### Running httpYac tests in Postman + +For developers who prefer to use Postman for API testing and debugging, you can easily convert `fhir-service.test.http` httpYac file to Postman: + +- Open the `fhir-service.test.http` and familiarize yourself with the structure of the file. You will see sections defining HTTP requests, including HTTP methods (GET, POST, etc.), URLs, headers, and body content. +- Open Postman and create a new collection. +- Add a new request to the collection for each HTTP request defined in the `fhir-service.test.http` file: + - Copy the method (GET, POST, etc.) from the httpYac file and set it in Postman. + - Copy the URL from the httpYac file and paste it into the Postman request URL field. + - Set the request headers in Postman by copying the headers from the httpYac file. Ensure each header key and value is correctly set. + - If the request includes a body, copy the body content from the httpYac file and paste it into the Postman body section. Select the appropriate body type (e.g., raw, JSON, form-data). + - Be sure to replace variables as necessary + +### `fhir-fixture-shinny-impl-guide-sample.json` + +This JSON file contains sample data compliant with the implementation guidelines +of our FHIR service. It is used within the .http tests to simulate valid data +submission. + +### `fhir-fixture-unhappy-path-01.json` + +This JSON file provides deliberately flawed FHIR data used to test the error +handling capabilities of our FHIR service endpoints. + +### `fhir-fixture-shinny-bronx-unhappy-path.json` + +This JSON file from Bronx provides the FHIR data which has some errors. + +### `fhir-fixture-shinny-healtheconnections-unhappy-path.json` + +This JSON file from Healtheconnections provides the FHIR data which has some +errors. diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-bronx-unhappy-path.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-bronx-unhappy-path.json new file mode 100644 index 0000000..b4fcde1 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-bronx-unhappy-path.json @@ -0,0 +1,1981 @@ +{ + "resourceType": "Bundle", + "id": "0978bab8-c510-455c-8f10-f6772c0143f6_1793", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "type": "transaction", + "total": 24, + "link": [ + { + "relation": "self", + "url": "http://10.80.80.125:9006/r4/Observation?identifier=dd9f3a5bc72ea5a576a1a9117cd2a34d&patient=6944887_CNYSCN~bronx-20240417-testcase1-MRN&category=survey&_include=Observation:patient&_include=Observation:encounter&_include=Encounter:organization&_include=Patient:consent" + } + ], + "entry": [ + { + "fullUrl": "http://10.80.80.125:9006/r4/Patient/CNYSCN~bronx-20240417-testcase1-MRN", + "resource": { + "resourceType": "Patient", + "id": "CNYSCN~bronx-20240417-testcase1-MRN", + "meta": { + "lastUpdated": "2024-04-18T13:24:18.000-04:00", + "profile": [ + "http://shinny.org/StructureDefinition/shinny-patient" + ] + }, + "text": { + "status": "generated", + "div": "
Morgan Pamela REED
Identifierbronx-20240417-testcase1-MRN
Address3805 Gallegos Fork
Floor 3 Apt 5
White Plains NY
Date of birth14 June 1970
" + }, + "extension": [ + { + "url": "http://shinny.org/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "1002-5", + "display": "AMERICAN INDIAN OR ALASKA NATIVE" + } + } + ] + }, + { + "url": "http://shinny.org/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "HISPANIC OR LATINO" + } + } + ] + } + ], + "identifier": [ + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR" + } + ], + "text": "Medical record number" + }, + "system": "https://bronx.imat.io/facility/CNYSCN", + "value": "bronx-20240417-testcase1-MRN" + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PN" + } + ], + "text": "Person number" + }, + "system": "https://bronxrhio.org/", + "value": "6944887" + } + ], + "name": [ + { + "use": "usual", + "family": "Reed", + "given": [ + "Morgan", + "Pamela" + ] + } + ], + "gender": "male", + "birthDate": "1970-06-14", + "address": [ + { + "use": "home", + "text": "3805 Gallegos Fork Floor 3 Apt 5 White Plains NY 10601", + "line": [ + "3805 Gallegos Fork", + "Floor 3 Apt 5" + ], + "city": "White Plains", + "state": "NY", + "postalCode": "10601" + } + ], + "managingOrganization": { + "reference": "Organization/BRONX" + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Patient/CNYSCN~bronx-20240417-testcase1-MRN" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Organization/CNYSCN", + "resource": { + "resourceType": "Organization", + "id": "CNYSCN", + "meta": { + "lastUpdated": "2024-04-18T17:09:52.220-04:00", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-organization" + ] + }, + "name": "CNYSCN" + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Organization/CNYSCN" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Encounter/cnyscn~bronxxbgu1so3y4", + "resource": { + "resourceType": "Encounter", + "id": "cnyscn~bronxxbgu1so3y4", + "meta": { + "lastUpdated": "2024-04-18T15:07:27.000-04:00", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "identifier": [ + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "VN" + } + ], + "text": "Visit Number" + }, + "system": "https://bronx.imat.io/facility/CNYSCN", + "value": "CNYSCN~bronxXBGU1SO3Y4" + } + ], + "status": "unknown", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "SS", + "display": "short stay" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "405672008", + "display": "Direct questioning" + } + ], + "text": "Direct questioning" + } + ], + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "period": { + "start": "2005-02-18T00:00:00-05:00", + "end": "1969-12-31T19:00:00-05:00" + }, + "location": [ + { + "location": { + "reference": "Location/CNYSCN" + } + } + ], + "serviceProvider": { + "reference": "Organization/CNYSCN" + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Encounter/cnyscn~bronxxbgu1so3y4" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Consent/Consent_CNYSCN~bronx-20240417-testcase1-MRN", + "resource": { + "resourceType": "Consent", + "id": "Consent_CNYSCN~bronx-20240417-testcase1-MRN", + "meta": { + "lastUpdated": "2024-04-18T13:23:47.000-04:00" + }, + "status": "active", + "scope": { + "coding": [ + { + "code": "treatment", + "display": "treatment" + } + ], + "text": "treatment" + }, + "category": [ + { + "coding": [ + { + "system": "http://loinc.org", + "code": "59284-0", + "display": "Patient Consent" + } + ], + "text": "Patient Consent" + } + ], + "patient": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "organization": [ + { + "reference": "Organization/CNYSCN" + } + ], + "provision": { + "type": "deny" + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Consent/Consent_CNYSCN~bronx-20240417-testcase1-MRN" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_1", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_1", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_1" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "financial-insecurity", + "display": "Financial Insecurity" + } + ], + "text": "financial-insecurity" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "76513-1", + "display": "How hard is it for you to pay for the very basics like food, housing, medical care, and heating? Would you say it is" + } + ], + "text": "How hard is it for you to pay for the very basics like food, housing, medical care, and heating? Would you say it is" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA22683-9", + "display": "Somewhat hard" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_1" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_2", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_2", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_2" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "68516-4", + "display": "On average, how many minutes did you usually spend exercising at this level on one of those days?" + } + ], + "text": "On average, how many minutes did you usually spend exercising at this level on one of those days?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA28858-1", + "display": "40" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_2" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_3", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_3", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_3" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "97027-7", + "display": "Do you speak a language other than English at home?" + } + ], + "text": "Do you speak a language other than English at home?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA33-6", + "display": "Yes" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_3" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "44250-9", + "display": "Little interest or pleasure in doing things?" + } + ], + "text": "Little interest or pleasure in doing things?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6569-3", + "display": "Several days" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_5", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_5", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_5" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "social-connection", + "display": "Social Connection" + } + ], + "text": "social-connection" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "93159-2", + "display": "How often do you feel lonely or isolated from those around you?" + } + ], + "text": "How often do you feel lonely or isolated from those around you?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA10082-8", + "display": "Sometimes" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_5" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_6", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_6", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_6" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96842-0", + "display": "How many times in the past 12 months have you used tobacco products (like cigarettes, cigars, snuff, chew, electronic cigarettes)?" + } + ], + "text": "How many times in the past 12 months have you used tobacco products (like cigarettes, cigars, snuff, chew, electronic cigarettes)?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA26460-8", + "display": "Once or Twice" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_6" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_7", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_7", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_7" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69861-3", + "display": "Because of a physical, mental, or emotional condition, do you have difficulty doing errands alone such as visiting a physician's office or shopping" + } + ], + "text": "Because of a physical, mental, or emotional condition, do you have difficulty doing errands alone such as visiting a physician's office or shopping" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA33-6", + "display": "Yes" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_7" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_8", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_8", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_8" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "69858-9", + "display": "Because of a physical, mental, or emotional condition, do you have serious difficulty concentrating, remembering, or making decisions?" + } + ], + "text": "Because of a physical, mental, or emotional condition, do you have serious difficulty concentrating, remembering, or making decisions?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA33-6", + "display": "Yes" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_8" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_9", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_9", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_9" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96782-8", + "display": "Do you want help with school or training? For example, starting or completing job training or getting a high school diploma, GED or equivalent." + } + ], + "text": "Do you want help with school or training? For example, starting or completing job training or getting a high school diploma, GED or equivalent." + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA32-8", + "display": "No" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_9" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_10", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_10", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_10" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "89555-7", + "display": "In the last 30 days, other than the activities you did for work, on average, how many days per week did you engage in moderate exercise (like walking fast, running, jogging, dancing, swimming, biking, or other similar activities)" + } + ], + "text": "In the last 30 days, other than the activities you did for work, on average, how many days per week did you engage in moderate exercise (like walking fast, running, jogging, dancing, swimming, biking, or other similar activities)" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6114-8", + "display": "3" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_10" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "44255-8", + "display": "Feeling down, depressed, or hopeless?" + } + ], + "text": "Feeling down, depressed, or hopeless?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6571-9", + "display": "Nearly every day" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_12", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_12", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_12" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95530-2", + "display": "How many times in the past year have you used prescription drugs for non-medical reasons?" + } + ], + "text": "How many times in the past year have you used prescription drugs for non-medical reasons?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA18934-2", + "display": "Daily or almost daily" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_12" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_13", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_13", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_13" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "employment-status", + "display": "Employment Status" + } + ], + "text": "employment-status" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96780-2", + "display": "Do you want help finding or keeping work or a job?" + } + ], + "text": "Do you want help finding or keeping work or a job?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31983-2", + "display": "I do not need or want help" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_13" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_14", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_14", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_14" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "code": "NI", + "display": "No Information" + } + ], + "text": "Calculated weekly physical activity" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "display": "120" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_14" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_15", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_15", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_15" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "68524-8", + "display": "How many times in the past year have you used illegal drugs?" + } + ], + "text": "How many times in the past year have you used illegal drugs?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA18891-4", + "display": "Weekly" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_15" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_16", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_16", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_16" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "68517-2", + "display": "How many times in the past 12 months have you had 5 or more drinks in a day (males) or 4 or more drinks in a day (females)?" + } + ], + "text": "How many times in the past 12 months have you had 5 or more drinks in a day (males) or 4 or more drinks in a day (females)?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA18891-4", + "display": "Weekly" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_16" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_17", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_17", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_17" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "stress", + "display": "Stress" + } + ], + "text": "stress" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "93038-8", + "display": "Stress means a situation in which a person feels tense, restless, nervous, or anxious, or is unable to sleep at night because his or her mind is troubled all the time. Do you feel this kind of stress these days?" + } + ], + "text": "Stress means a situation in which a person feels tense, restless, nervous, or anxious, or is unable to sleep at night because his or her mind is troubled all the time. Do you feel this kind of stress these days?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA13863-8", + "display": "A little bit" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_17" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_18", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_18", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_18" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "social-connection", + "display": "Social Connection" + } + ], + "text": "social-connection" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96781-0", + "display": "If for any reason you need help with day-to-day activities such as bathing, preparing meals, shopping, managing finances, etc., do you get the help you need?" + } + ], + "text": "If for any reason you need help with day-to-day activities such as bathing, preparing meals, shopping, managing finances, etc., do you get the help you need?" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31979-0", + "display": "I need a lot more help" + } + ] + } + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_18" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_19", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_19", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_19" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + } + ], + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-NullFlavor", + "code": "NI", + "display": "No Information" + } + ], + "text": "Calculated mental health score" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "1969-12-31T19:00:00", + "valueCodeableConcept": { + "coding": [ + { + "display": "4" + } + ] + }, + "derivedFrom": [ + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11" + } + ] + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_19" + } + }, + { + "fullUrl": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_Grouper1", + "resource": { + "resourceType": "Observation", + "id": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_Grouper1", + "meta": { + "lastUpdated": "2024-04-18T14:56:48.000-04:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "identifier": [ + { + "value": "dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_Grouper1" + } + ], + "status": "registered", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "survey" + } + ], + "text": "survey" + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ], + "text": "Social History" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "financial-insecurity", + "display": "Financial Insecurity" + } + ], + "text": "financial-insecurity" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ], + "text": "sdoh-category-unspecified" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "social-connection", + "display": "Social Connection" + } + ], + "text": "social-connection" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "employment-status", + "display": "Employment Status" + } + ], + "text": "employment-status" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "stress", + "display": "Stress" + } + ], + "text": "stress" + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "social-connection", + "display": "Social Connection" + } + ], + "text": "social-connection" + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "97023-6", + "display": "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions" + } + ], + "text": "Accountable health communities (AHC) health-related social needs (HRSN) supplemental questions" + }, + "subject": { + "reference": "Patient/CNYSCN~bronx-20240417-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/cnyscn~bronxxbgu1so3y4" + }, + "effectiveDateTime": "2005-02-18T00:00:00", + "hasMember": [ + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_1" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_2" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_3" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_4" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_5" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_6" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_7" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_8" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_9" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_10" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_11" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_12" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_13" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_14" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_15" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_16" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_17" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_18" + }, + { + "reference": "Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_19" + } + ] + }, + "request": { + "method": "GET", + "url": "http://10.80.80.125:9006/r4/Observation/dd9f3a5bc72ea5a576a1a9117cd2a34d_obs3_Grouper1" + } + } + ] +} \ No newline at end of file diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-healtheconnections-unhappy-path.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-healtheconnections-unhappy-path.json new file mode 100644 index 0000000..c58e18c --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-healtheconnections-unhappy-path.json @@ -0,0 +1,1231 @@ +{ + "resourceType": "Bundle", + "id": "daad7f90-fea0-11ee-a532-1bb5b6aa3b46-healtheconnections-20240419-testcase1-MRN-healtheconnectionsUQRACLDOFW", + "type": "transaction", + "meta": { + "lastUpdated": "2023-10-28 10:07:42.9149210" + }, + "timestamp": "2024-04-19T23:02:11.209Z", + "entry": [ + { + "fullUrl": "CNYSCN-healtheconnections-20240419-testcase1-MRN", + "resource": { + "resourceType": "Patient", + "id": "CNYSCN-healtheconnections-20240419-testcase1-MRN", + "meta": { + "lastUpdated": "2023-10-28 10:07:42.9149210", + "profile": [ + "http://shinny.org/StructureDefinition/shinny-patient" + ] + }, + "language": "glg", + "extension": [ + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "1123-9", + "display": "Chippewa" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" + }, + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2161-8", + "display": "Salvadoran" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode": "OTH" + }, + { + "url": "http://shinny.org/StructureDefinition/shinny-sexual-orientation", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "20430005", + "display": "Heterosexual" + } + ] + } + } + ], + "identifier": [ + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR" + } + ], + "text": "Medical Record Number" + }, + "system": "/facility/CNYSCN", + "value": "healtheconnections-20240419-testcase1-MRN", + "assigner": { + "reference": "Organization/CNYSCN" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MA" + } + ] + }, + "system": "http://www.medicaid.gov/", + "value": "RV82289H", + "assigner": { + "reference": "Organization/2.16.840.1.113883.3.249" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PN" + } + ] + }, + "system": "http://www.acme.com/identifiers/patient", + "value": "13209924" + } + ], + "name": [ + { + "text": "Andrew Veronica Stevens", + "family": "Stevens", + "given": [ + "Andrew", + "Veronica" + ] + } + ], + "gender": "UN", + "birthDate": "1987-05-07", + "address": [ + { + "text": "7089 Brandt Summit Apt. 082 Apt 356", + "line": [ + "7089 Brandt Summit Apt. 082", + "Apt 356" + ], + "city": "Long Beach", + "state": "NY", + "postalCode": "11561" + } + ], + "communication": [ + { + "language": { + "coding": [ + { + "code": "glg" + } + ] + }, + "preferred": true + } + ] + } + }, + { + "fullUrl": "crossroads-ny-social-care-network-scn-cnyscn", + "resource": { + "resourceType": "Organization", + "id": "CNYSCN", + "meta": { + "lastUpdated": "2023-10-28 10:07:42.9149210", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-organization" + ] + }, + "identifier": [ + { + "system": "CNYSCN", + "value": "crossroads-ny-social-care-network-scn-cnyscn" + } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/organization-type", + "code": "SCN", + "display": "SCN" + } + ] + } + ], + "name": "Crossroads NY Social Care Network", + "address": [ + { + "text": "25 W 45th st Suite 16", + "city": "New York", + "state": "New York", + "postalCode": "10036" + } + ] + } + }, + { + "fullUrl": "consentForhealtheconnections-20240419-testcase1-MRN", + "resource": { + "resourceType": "Consent", + "id": "consentForhealtheconnections-20240419-testcase1-MRN", + "meta": { + "lastUpdated": "2023-10-28 10:07:42.9149210", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-organization" + ] + }, + "status": "active", + "scope": { + "coding": [ + { + "code": "treatment" + } + ], + "text": "treatment" + }, + "category": [ + { + "coding": [ + { + "display": "Patient Consent", + "code": "59284-0", + "system": "http://loinc.org" + } + ] + } + ], + "patient": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "dateTime": "2023-10-28 10:07:42.9149210", + "organization": [ + { + "reference": "Organization/CNYSCN" + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-1", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-1", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96778-6", + "display": "Think about the place you live. Do you have problems with any of the following?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31997-2", + "display": "Lead paint or pipes" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-2", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-2", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "food-insecurity", + "display": "Food Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "88122-7", + "display": "Within the past 12 months, you worried that your food would run out before you got money to buy more." + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA28397-0", + "display": "Often true" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-3", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-3", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "71802-3", + "display": "What is your living situation today?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31995-6", + "display": "I do not have a steady place to live (I am temporarily staying with others, in a hotel, in a shelter, living outside on the street, on a beach, in a car, abandoned building, bus or train station, or in a park)" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-4", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-4", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "food-insecurity", + "display": "Food Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "88123-5", + "display": "Within the past 12 months, the food you bought just didn't last and you didn't have money to get more." + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA28397-0", + "display": "Often true" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-5", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-5", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "transportation-insecurity", + "display": "Transportation Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "93030-5", + "display": "In the past 12 months, has lack of reliable transportation kept you from medical appointments, meetings, work or from getting things needed for daily living?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA32-8", + "display": "No" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-6", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-6", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96779-4", + "display": "In the past 12 months has the electric, gas, oil, or water company threatened to shut off services in your home?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA32002-0", + "display": "Already shut off" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-7", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-7", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95618-5", + "display": "How often does anyone, including family and friends, physically hurt you?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6270-8", + "display": "Never" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-8", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-8", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95617-7", + "display": "How often does anyone, including family and friends, insult or talk down to you?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6482-9", + "display": "Frequently" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-9", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-9", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95616-9", + "display": "How often does anyone, including family and friends, threaten you with harm?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA10082-8", + "display": "Sometimes" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-10", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-10", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95615-1", + "display": "How often does anyone, including family and friends, scream or curse at you?" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA6270-8", + "display": "Never" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-11", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-11", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "95614-4", + "display": "Total Safety Score" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://unitsofmeasure.org", + "code": "{score}", + "display": "10" + } + ] + }, + "derivedFrom": [ + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-10" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-9" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-7" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-8" + } + ], + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "healtheconnectionsUQRACLDOFW", + "resource": { + "resourceType": "Encounter", + "id": "healtheconnectionsUQRACLDOFW", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "status": "entered-in-error", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "SS" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "23918007", + "display": "History taking, self-administered, by computer terminal" + } + ], + "text": "History taking, self-administered, by computer terminal" + } + ], + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + } + } + }, + { + "fullUrl": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-11-grouper", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-11-grouper", + "meta": { + "lastUpdated": "1999-06-20 11:23:25.9430260", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "preliminary", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "display": "Food Insecurity", + "code": "food-insecurity" + }, + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "display": "Transportation Insecurity", + "code": "transportation-insecurity" + }, + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "display": "SDOH Category Unspecified", + "code": "sdoh-category-unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96777-8", + "display": "Accountable health communities (AHC) health-related social needs screening (HRSN) tool" + } + ] + }, + "subject": { + "reference": "Patient/CNYSCN-healtheconnections-20240419-testcase1-MRN" + }, + "encounter": { + "reference": "Encounter/healtheconnectionsUQRACLDOFW" + }, + "effectiveDateTime": "1999-06-20 11:23:25.9430260", + "issued": "1999-06-20 11:23:25.9430260", + "hasMember": [ + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-1" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-2" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-3" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-4" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-5" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-6" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-7" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-8" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-9" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-10" + }, + { + "reference": "Observation/observationResponseQuestion-healtheconnectionsUQRACLDOFW-fce5e109f8f645925d5419c83e14ccad-11" + } + ] + } + } + ] +} diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-impl-guide-sample.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-impl-guide-sample.json new file mode 100644 index 0000000..2802927 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-shinny-impl-guide-sample.json @@ -0,0 +1,439 @@ +{ + "resourceType": "Bundle", + "id": "bundle-example", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z" + }, + "identifier": { + "system": "http://example.com/fhir/bundle-ids", + "value": "987654321" + }, + "type": "searchset", + "total": 3, + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2" + }, + { + "relation": "next", + "url": "https://example.com/base/MedicationRequest?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2" + } + ], + "entry": [ + { + "fullUrl": "albany-medical-center-hospital-amc", + "resource": { + "resourceType": "Organization", + "id": "AMC", + "meta": { + "lastUpdated": "2018-11-12T03:35:20.715Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-organization" + ] + }, + "identifier": [ + { "system": "AMC", "value": "albany-medical-center-hospital-amc" } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/organization-type", + "code": "Hospital", + "display": "Hospital" + } + ] + } + ], + "name": "Albany Medical Center", + "address": [ + { + "text": "43 New Scotland Ave ", + "city": "Albany", + "state": "New York", + "postalCode": "12208" + } + ] + } + }, + { + "fullUrl": "AMC-healthelink-20240305-testcase3-MRN", + "resource": { + "resourceType": "Patient", + "id": "AMC-healthelink-20240305-testcase3-MRN", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language": "myv", + "extension": [ + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "1142-9", + "display": "Coquille" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" + }, + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2137-8", + "display": "Spaniard" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode": "UNK" + }, + { + "url": "http://shinny.org/StructureDefinition/shinny-sexual-orientation", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "20430005", + "display": "Heterosexual" + } + ] + } + } + ], + "identifier": [ + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR" + } + ], + "text": "Medical Record Number" + }, + "system": "AMC", + "value": "healthelink-20240305-testcase3-MRN", + "assigner": { "reference": "Organization/AMC" } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MA" + } + ] + }, + "system": "http://www.medicaid.gov/", + "value": "QK65113X", + "assigner": { "reference": "Organization/2.16.840.1.113883.3.249" } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PN" + } + ] + }, + "system": "http://www.acme.com/identifiers/patient", + "value": "healthelinkH0QF7VFUQO" + } + ], + "name": [ + { + "text": "Summer Nathaniel Bautista", + "family": "Bautista", + "given": ["Summer", "Nathaniel"] + } + ], + "gender": "male", + "birthDate": "2004-06-20", + "address": [ + { + "text": "519 Larsen Ports Apt. 379 Suite 11", + "line": ["519 Larsen Ports Apt. 379", "Suite 11"], + "city": "North Tonawanda", + "state": "NY", + "postalCode": "14120" + } + ], + "communication": [ + { "language": { "coding": [{ "code": "myv" }] }, "preferred": true } + ] + } + }, + { + "fullUrl": "healthelinkHAI33MUHEB", + "resource": { + "resourceType": "Encounter", + "id": "healthelinkHAI33MUHEB", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "185320006", + "display": "Encounter by computer link" + } + ], + "text": "Encounter by computer link" + } + ], + "subject": { + "reference": "Patient/CUMC-healthelink-20240305-testcase1-MRN" + } + } + }, + { + "fullUrl": "healthelinkJJBVDJUEN5", + "resource": { + "resourceType": "Encounter", + "id": "healthelinkJJBVDJUEN5", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "185320006", + "display": "Encounter by computer link" + } + ], + "text": "Encounter by computer link" + } + ], + "subject": { + "reference": "Patient/CUMC-healthelink-20240305-testcase1-MRN" + } + } + }, + + { + "fullUrl": "observationResponseQuestion_1", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion_1", + "meta": { + "lastUpdated": "1971-08-20T23:49:27-02:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "unknown", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "71802-3", + "display": "What is your living situation today?" + } + ] + }, + "subject": { + "reference": "Patient/healthelink-20240315-testcase6-MRN" + }, + "effectiveDateTime": "1971-08-20T23:49:27-02:00", + "issued": "1971-08-20T23:49:27-02:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31993-1", + "display": "I have a steady place to live" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion_2", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion_2", + "meta": { + "lastUpdated": "1971-08-20T23:49:27-02:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "unknown", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96778-6", + "display": "Think about the place you live. Do you have problems with any of the following?" + } + ] + }, + "subject": { + "reference": "Patient/healthelink-20240315-testcase6-MRN" + }, + "effectiveDateTime": "1971-08-20T23:49:27-02:00", + "issued": "1971-08-20T23:49:27-02:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31998-0", + "display": "Lack of heat" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + + { + "fullUrl": "https://example.com/base/MedicationRequest/3123", + "resource": { + "resourceType": "MedicationRequest", + "id": "3123", + "text": { + "status": "generated", + "div": "

Generated Narrative with Details

id: 3123

status: unknown

intent: order

medication: Medication/example

subject: Patient/347

" + }, + "status": "unknown", + "intent": "order", + "medicationReference": { + "reference": "Medication/example" + }, + "subject": { + "reference": "Patient/347" + } + }, + "search": { + "mode": "match", + "score": 1 + } + }, + { + "fullUrl": "https://example.com/base/Medication/example", + "resource": { + "resourceType": "Medication", + "id": "example", + "text": { + "status": "generated", + "div": "

Generated Narrative with Details

id: example

" + } + }, + "search": { + "mode": "include" + } + } + ] +} diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-unhappy-path-01.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-unhappy-path-01.json new file mode 100644 index 0000000..49eba4a --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-fixture-unhappy-path-01.json @@ -0,0 +1,439 @@ +{ + "resourceTypes": "Bundle", + "id": "bundle-example", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z" + }, + "identifier": { + "system": "http://example.com/fhir/bundle-ids", + "value": "987654321" + }, + "type": "searchset", + "total": 3, + "link": [ + { + "relation": "self", + "url": "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2" + }, + { + "relation": "next", + "url": "https://example.com/base/MedicationRequest?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2" + } + ], + "entry": [ + { + "fullUrl": "albany-medical-center-hospital-amc", + "resource": { + "resourceType": "Organization", + "id": "AMC", + "meta": { + "lastUpdated": "2018-11-12T03:35:20.715Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-organization" + ] + }, + "identifier": [ + { "system": "AMC", "value": "albany-medical-center-hospital-amc" } + ], + "active": true, + "type": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/organization-type", + "code": "Hospital", + "display": "Hospital" + } + ] + } + ], + "name": "Albany Medical Center", + "address": [ + { + "text": "43 New Scotland Ave ", + "city": "Albany", + "state": "New York", + "postalCode": "12208" + } + ] + } + }, + { + "fullUrl": "AMC-healthelink-20240305-testcase3-MRN", + "resource": { + "resourceType": "Patient", + "id": "AMC-healthelink-20240305-testcase3-MRN", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language": "myv", + "extension": [ + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "1142-9", + "display": "Coquille" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" + }, + { + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2137-8", + "display": "Spaniard" + } + } + ], + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode": "UNK" + }, + { + "url": "http://shinny.org/StructureDefinition/shinny-sexual-orientation", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "20430005", + "display": "Heterosexual" + } + ] + } + } + ], + "identifier": [ + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR" + } + ], + "text": "Medical Record Number" + }, + "system": "AMC", + "value": "healthelink-20240305-testcase3-MRN", + "assigner": { "reference": "Organization/AMC" } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MA" + } + ] + }, + "system": "http://www.medicaid.gov/", + "value": "QK65113X", + "assigner": { "reference": "Organization/2.16.840.1.113883.3.249" } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "PN" + } + ] + }, + "system": "http://www.acme.com/identifiers/patient", + "value": "healthelinkH0QF7VFUQO" + } + ], + "name": [ + { + "text": "Summer Nathaniel Bautista", + "family": "Bautista", + "given": ["Summer", "Nathaniel"] + } + ], + "gender": "male", + "birthDate": "2004-06-20", + "address": [ + { + "text": "519 Larsen Ports Apt. 379 Suite 11", + "line": ["519 Larsen Ports Apt. 379", "Suite 11"], + "city": "North Tonawanda", + "state": "NY", + "postalCode": "14120" + } + ], + "communication": [ + { "language": { "coding": [{ "code": "myv" }] }, "preferred": true } + ] + } + }, + { + "fullUrl": "healthelinkHAI33MUHEB", + "resource": { + "resourceType": "Encounter", + "id": "healthelinkHAI33MUHEB", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "185320006", + "display": "Encounter by computer link" + } + ], + "text": "Encounter by computer link" + } + ], + "subject": { + "reference": "Patient/CUMC-healthelink-20240305-testcase1-MRN" + } + } + }, + { + "fullUrl": "healthelinkJJBVDJUEN5", + "resource": { + "resourceType": "Encounter", + "id": "healthelinkJJBVDJUEN5", + "meta": { + "lastUpdated": "2014-08-18T01:43:30Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "185320006", + "display": "Encounter by computer link" + } + ], + "text": "Encounter by computer link" + } + ], + "subject": { + "reference": "Patient/CUMC-healthelink-20240305-testcase1-MRN" + } + } + }, + + { + "fullUrl": "observationResponseQuestion_1", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion_1", + "meta": { + "lastUpdated": "1971-08-20T23:49:27-02:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "unknown", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "71802-3", + "display": "What is your living situation today?" + } + ] + }, + "subject": { + "reference": "Patient/healthelink-20240315-testcase6-MRN" + }, + "effectiveDateTime": "1971-08-20T23:49:27-02:00", + "issued": "1971-08-20T23:49:27-02:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31993-1", + "display": "I have a steady place to live" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + { + "fullUrl": "observationResponseQuestion_2", + "resource": { + "resourceType": "Observation", + "id": "observationResponseQuestion_2", + "meta": { + "lastUpdated": "1971-08-20T23:49:27-02:00", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "unknown", + "category": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "social-history", + "display": "Social History" + } + ] + }, + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/observation-category", + "code": "survey", + "display": "Survey" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "sdoh-category-unspecified", + "display": "SDOH Category Unspecified" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://loinc.org", + "code": "96778-6", + "display": "Think about the place you live. Do you have problems with any of the following?" + } + ] + }, + "subject": { + "reference": "Patient/healthelink-20240315-testcase6-MRN" + }, + "effectiveDateTime": "1971-08-20T23:49:27-02:00", + "issued": "1971-08-20T23:49:27-02:00", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://loinc.org", + "code": "LA31998-0", + "display": "Lack of heat" + } + ] + }, + "interpretation": [ + { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", + "code": "POS", + "display": "Positive" + } + ] + } + ] + } + }, + + { + "fullUrl": "https://example.com/base/MedicationRequest/3123", + "resource": { + "resourceType": "MedicationRequest", + "id": "3123", + "text": { + "status": "generated", + "div": "

Generated Narrative with Details

id: 3123

status: unknown

intent: order

medication: Medication/example

subject: Patient/347

" + }, + "status": "unknown", + "intent": "order", + "medicationReference": { + "reference": "Medication/example" + }, + "subject": { + "reference": "Patient/347" + } + }, + "search": { + "mode": "match", + "score": 1 + } + }, + { + "fullUrl": "https://example.com/base/Medication/example", + "resource": { + "resourceType": "Medication", + "id": "example", + "text": { + "status": "generated", + "div": "

Generated Narrative with Details

id: example

" + } + }, + "search": { + "mode": "include" + } + } + ] +} diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test-sample.postman.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test-sample.postman.json new file mode 100644 index 0000000..cd61826 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test-sample.postman.json @@ -0,0 +1,239 @@ +{ + "info": { + "_postman_id": "12345678-1234-5678-1234-567812345678", + "name": "FHIR Service Test", + "description": "This collection tests and verifies the FHIR service with two API endpoints", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "Fetch CapabilityStatement", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "{{contentType}}" + } + ], + "url": { + "raw": "{{hostName}}/metadata", + "host": [ + "{{hostName}}" + ], + "path": [ + "metadata" + ] + } + } + }, + { + "name": "Validate Bundle - Happy Path", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "{{contentType}}" + }, + { + "key": "Accept", + "value": "application/fhir+json;charset=utf-8" + }, + { + "key": "TECH_BD_FHIR_SERVICE_QE_IDENTIFIER", + "value": "{{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}" + } + ], + "url": { + "raw": "{{hostName}}/Bundle/$validate", + "host": [ + "{{hostName}}" + ], + "path": [ + "Bundle", + "$validate" + ] + }, + "body": { + "mode": "file", + "file": { + "src": "fhir-fixture-shinny-impl-guide-sample.json" + } + } + } + }, + { + "name": "Validate Bundle - Unhappy Path", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "{{contentType}}" + }, + { + "key": "Accept", + "value": "application/fhir+json;charset=utf-8" + }, + { + "key": "TECH_BD_FHIR_SERVICE_QE_IDENTIFIER", + "value": "{{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}" + } + ], + "url": { + "raw": "{{hostName}}/Bundle/$validate", + "host": [ + "{{hostName}}" + ], + "path": [ + "Bundle", + "$validate" + ] + }, + "body": { + "mode": "file", + "file": { + "src": "fhir-fixture-unhappy-path-01.json" + } + } + } + }, + { + "name": "Validate Bundle from Bronx QE - Unhappy Path", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "{{contentType}}" + }, + { + "key": "Accept", + "value": "application/fhir+json;charset=utf-8" + }, + { + "key": "TECH_BD_FHIR_SERVICE_QE_IDENTIFIER", + "value": "{{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}" + } + ], + "url": { + "raw": "{{hostName}}/Bundle/$validate", + "host": [ + "{{hostName}}" + ], + "path": [ + "Bundle", + "$validate" + ] + }, + "body": { + "mode": "file", + "file": { + "src": "fhir-fixture-shinny-bronx-unhappy-path.json" + } + } + } + }, + { + "name": "Validate Bundle from HealtheConnections QE - Unhappy Path", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "{{contentType}}" + }, + { + "key": "Accept", + "value": "application/fhir+json;charset=utf-8" + }, + { + "key": "TECH_BD_FHIR_SERVICE_QE_IDENTIFIER", + "value": "{{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}" + } + ], + "url": { + "raw": "{{hostName}}/Bundle/$validate", + "host": [ + "{{hostName}}" + ], + "path": [ + "Bundle", + "$validate" + ] + }, + "body": { + "mode": "file", + "file": { + "src": "fhir-fixture-shinny-healtheconnections-unhappy-path.json" + } + } + } + }, + { + "name": "Submit Bundle to Datalake", + "request": { + "method": "POST", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + } + ], + "url": { + "raw": "{{hostName}}/Bundle/?qe=HEALTHELINK", + "host": [ + "{{hostName}}" + ], + "path": [ + "Bundle" + ], + "query": [ + { + "key": "qe", + "value": "HEALTHELINK" + } + ] + }, + "body": { + "mode": "file", + "file": { + "src": "fhir-fixture-shinny-impl-guide-sample.json" + } + } + } + }, + { + "name": "Get Session Details", + "request": { + "method": "GET", + "header": [ + { + "key": "Content-Type", + "value": "application/json" + }, + { + "key": "Accept", + "value": "application/fhir+json;charset=utf-8" + }, + { + "key": "TECH_BD_FHIR_SERVICE_QE_IDENTIFIER", + "value": "{{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}}" + } + ], + "url": { + "raw": "{{hostName}}/admin/diagnostics/{{sessionId}}", + "host": [ + "{{hostName}}" + ], + "path": [ + "admin", + "diagnostics", + "{{sessionId}}" + ] + } + } + } + ] +} diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test.http b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test.http new file mode 100644 index 0000000..42442a2 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22/fhir-service.test.http @@ -0,0 +1,154 @@ +# this file is for testing and verifying the FHIR service with two api end points +# ------------------------------------------------------------------------ +# * requires the `vscode-httpyac` Visual Studio Code extension +# * requires a `.env` file with HOST, PORT +# * this service has 2 endpoints /Bundle/$validate & /Bundle/ + +@hostName = {{$processEnv HOST}} + +@contentType = application/json +@TECH_BD_FHIR_SERVICE_QE_IDENTIFIER = HEALTHELINK + +### /metadata endpoint should return FHIR CapabilityStatement + +GET {{hostName}}/metadata HTTP/1.1 +Content-Type: {{contentType}} +{{ + const { equal } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'text/plain;charset=UTF-8'); + }); + test.hasResponseBody(); +}} + +### /Bundle/$validate should validate fhir-fixture-shinny-impl-guide-sample.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +Accept : application/fhir+json;charset=utf-8 +TECH_BD_FHIR_SERVICE_QE_IDENTIFIER: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +{{ + const { equal } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'application/fhir+json;charset=utf-8'); + }); + test.hasResponseBody(); + test('Check Resource Type', () => { + equal(JSON.parse(response.body).techbdSession.version, '0.23.5'); + }); +}} + +< fhir-fixture-shinny-impl-guide-sample.json + +### /Bundle/$validate should validate fhir-fixture-unhappy-path-01.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +Accept : application/fhir+json;charset=utf-8 +TECH_BD_FHIR_SERVICE_QE_IDENTIFIER: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +{{ + const { equal, notEqual } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); // Use equal for this specific test case + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'application/fhir+json;charset=utf-8'); + }); + test.hasResponseBody(); + test('check Result', () => { + equal(JSON.parse(response.body).techbdSession.entries[0].exceptions.length, 1); + }); +}} + + +< fhir-fixture-unhappy-path-01.json + + +### /Bundle/$validate should validate fhir-fixture-shinny-bronx-unhappy-path.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +Accept : application/fhir+json;charset=utf-8 +TECH_BD_FHIR_SERVICE_QE_IDENTIFIER: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +{{ + const { equal, notEqual } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); // Use equal for this specific test case + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'application/fhir+json;charset=utf-8'); + }); + test.hasResponseBody(); + test('check Result', () => { + equal(JSON.parse(response.body).techbdSession.entries[0].result.isSuccessful, false); + }); + test('check Diagnostics', () => { + equal(JSON.parse(response.body).techbdSession.entries[0].operationOutcome.outcome.issue.length, 88); + }); +}} + + +< fhir-fixture-shinny-bronx-unhappy-path.json + +### /Bundle/$validate should validate fhir-fixture-shinny-healtheconnections-unhappy-path.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +Accept : application/fhir+json;charset=utf-8 +TECH_BD_FHIR_SERVICE_QE_IDENTIFIER: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +{{ + const { equal, notEqual, includes } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); // Use equal for this specific test case + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'application/fhir+json;charset=utf-8'); + }); + test.hasResponseBody(); + test('check Result', () => { + equal(JSON.parse(response.body).techbdSession.entries[0].exceptions.length, 1); + }); + test('check Diagnostics', () => { + equal((JSON.parse(response.body).techbdSession.entries[0].exceptions[0]).includes('Invalid date/time format'), true); + }); +}} + +< fhir-fixture-shinny-healtheconnections-unhappy-path.json + +### /Bundle should validate and submit fhir-fixture-shinny-impl-guide-sample.json as HEALTHeLINK + +POST {{hostName}}/Bundle/?qe=HEALTHELINK HTTP/1.1 +Content-Type: application/json +{{ + const { equal, notEqual } = require('assert'); + test('status code 201', () => { + notEqual(response.statusCode, 201); // Use equal for this specific test case + }); + test('Check content-type', () => { + equal(response.contentType.contentType, 'text/plain;charset=UTF-8'); + }); + test.hasResponseBody(); + test('check Result', () => { + equal(response.body, 'API invoked'); + }); +}} + +< fhir-fixture-shinny-impl-guide-sample.json + +### /admin/diagnostics endpoint should be an HTML page + +GET {{hostName}}/admin/diagnostics HTTP/1.1 +Content-Type: application/json +TECH_BD_FHIR_SERVICE_QE_IDENTIFIER: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +{{ + const { equal, notEqual } = require('assert'); + test('status code 200', () => { + equal(response.statusCode, 200); // Use equal for this specific test case + }); +}} \ No newline at end of file diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/regression-test.sh b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/regression-test.sh index 3005265..c939864 100755 --- a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/regression-test.sh +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/regression-test.sh @@ -12,7 +12,7 @@ SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) TIMESTAMP=$(date +'%Y/%m/%Y-%m-%d-%H-%M-%S') -ASSURANCE_FHIR_SRC_DIR=$(readlink -f $SCRIPT_DIR/fhir-service-prime/src/2024-05-21) +ASSURANCE_FHIR_SRC_DIR=$(readlink -f $SCRIPT_DIR/fhir-service-prime/src/2024-05-22) ASSURANCE_FHIR_RESULTS_DIR=$(readlink -f $SCRIPT_DIR/../../../../../public/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/results) TIMESTAMPPED_ASSURANCE_FHIR_RESULTS_DIR=$ASSURANCE_FHIR_RESULTS_DIR/$TIMESTAMP diff --git a/src/content/docs/1115-hub/fhir-services/regression-test-results.md b/src/content/docs/1115-hub/fhir-services/regression-test-results.md index 2dcfe12..f24d3e9 100644 --- a/src/content/docs/1115-hub/fhir-services/regression-test-results.md +++ b/src/content/docs/1115-hub/fhir-services/regression-test-results.md @@ -7,7 +7,7 @@ title: Regression Test Results ### TechBD FHIR API test scripts and results Learn about API endpoints by reviewing [TechBD's FHIR API Test Script](/docs.techbd.org/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/results/latest/src/fhir-service.test.http). -- [Latest Test Fixtures](https://github.com/tech-by-design/docs.techbd.org/tree/main/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-21) (generated test cases) +- [Latest Test Fixtures](https://github.com/tech-by-design/docs.techbd.org/tree/main/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-05-22) (generated test cases) - [Latest Test Results (HTML from httpYac)](/docs.techbd.org/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/results/latest/regression-test-results.httpyac.junit.xml.html) - [Latest Test Results (httpYac raw output)](/docs.techbd.org/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/results/latest/regression-test-results.httpyac.txt) - [Previous Test Results](https://github.com/tech-by-design/docs.techbd.org/tree/main/public/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/results/2024/05)