From a2452254d3a2be1e5608b28e089e8a4110c3a93e Mon Sep 17 00:00:00 2001 From: vinodaravind01 Date: Thu, 27 Jun 2024 16:47:12 +0530 Subject: [PATCH 1/2] docs: update test case --- .../src/2024-06-27/README.md | 56 ++ .../src/2024-06-27/TestTask.json | 559 ++++++++++++++++++ .../src/2024-06-27/TestTaskCompleted.json | 365 ++++++++++++ .../Test\342\200\213ProcedureCompleted.json" | 436 ++++++++++++++ .../Test\342\200\213ServiceRequest.json" | 475 +++++++++++++++ .../src/2024-06-27/fhir-service.test.http | 94 +++ 6 files changed, 1985 insertions(+) create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/README.md create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTask.json create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTaskCompleted.json create mode 100644 "assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ProcedureCompleted.json" create mode 100644 "assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ServiceRequest.json" create mode 100644 assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/fhir-service.test.http diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/README.md b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/README.md new file mode 100644 index 0000000..d9aa6a9 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/README.md @@ -0,0 +1,56 @@ +## 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. + - **NOTE:** Pay attention to the header `X-TechBD-Tenant-ID: TECH_BD_FHIR_SERVICE_QE_IDENTIFIER`. When using your tool instead of HTTP YAC (e.g., Postman), ensure this header is passed correctly according to your API requirements. + **Example:** + - Key: `X-TechBD-Tenant-ID` + - Value: `CommonTenant123` + - 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 + +### `Test​ServiceRequest.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. + +### `TestTask.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. + +### `TestTaskCompleted.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. + +### `Test​ProcedureCompleted.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. diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTask.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTask.json new file mode 100644 index 0000000..8c824f1 --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTask.json @@ -0,0 +1,559 @@ +{ + "resourceType": "Bundle", + "id": "8ef1d025-95df-35f0-6218-7b6774190dd1", + "type": "transaction", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/SHINNYBundleProfile" + ] + }, + "timestamp": "2024-02-023T00:00:00Z", + "entry": [ + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc", + "resource" : { + "resourceType" : "Patient", + "id" : "98065610-3da2-1442-f01f-49fc5f30afcc", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language" : "en", + "extension" : [{ + "extension" : [{ + "url" : "ombCategory", + "valueCoding" : { + "system" : "urn:oid:2.16.840.1.113883.6.238", + "code" : "2106-3", + "display" : "White" + } + } + ], + "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" : "2135-2", + "display" : "Hispanic or Latino" + } + }], + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode" : "F" + }], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MR" + }] + }, + "system" : "http://www.scn.gov/facility/CUMC", + "value" : "11223344", + "assigner" : { + "reference" : "Organization/scn_coordination_platform" + } + }, + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MA" + }] + }, + "system" : "http://www.medicaid.gov/", + "value" : "AA12345C", + "assigner" : { + "reference" : "Organization/2.16.840.1.113883.3.249" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "SS", + "display": "Social Security Number" + } + ], + "text": "Social Security Number" + }, + "system": "http://hl7.org/fhir/sid/us-ssn", + "value": "999-34-2964" + }], + "name" : [{ + "family" : "Doe", + "given" : ["Jon"], + "prefix": [ + "Mr.", "Dr.", "PhD", "CCNA" + ], + "suffix": [ + "Jr.", "III" + ] + }], + "gender" : "female", + "birthDate" : "1981-07-16", + "address" : [{ + "text" : "115 Broadway\tApt2", + "line" : ["115 Broadway", + "Apt2"], + "city" : "New York", + "state" : "NY", + "postalCode" : "10032" + }], + "telecom": [ + { + "system": "phone", + "value": "555-120-6047", + "use": "home" + } + ], + "communication" : [ + { + "language" : { + "coding" : [{ + "code" : "EN", + "system": "urn:iso:std:iso:639" + }] + }, + "preferred" : true, + "extension": [ + { + "url": "http://shinny.org/fhir/StructureDefinition/fluency-level", + "valueInteger": 7 + }, + { + "url": "http://shinny.org/fhir/StructureDefinition/writing-level", + "valueInteger": 7 + } + ] + } + ] + } + }, + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "resource" : { + "resourceType" : "Task", + "id" : "SDOHCC-TaskReferralManagementOrderFulfillmentAcceptedExample", + "meta" : { + "profile" : ["http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SHINNYSDOHTaskForReferralManagement"] + }, + "status" : "accepted", + "intent" : "order", + "code" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/CodeSystem/task-code", + "code" : "fulfill", + "display" : "Fulfill the focal request" + }] + }, + "focus" : { + "reference" : "ServiceRequest/98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109" + }, + "for" : { + "reference" : "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "authoredOn" : "2020-09-11T21:56:54.671Z", + "requester" : { + "reference" : "Practitioner/social_worker_espinoza" + }, + "owner": { + "reference" : "Organization/cbo" + }, + "Encounter": { + "reference": "Encounter/urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df" + }, + "restriction": { + "repetitions": 30, + "period": { + "start": "2024-07-01", + "end": "2024-07-31" + }, + "recipient": { + "reference" : "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + } + } + } + }, + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "resource" : { + "resourceType": "ServiceRequest", + "id": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/SHINNYSDOHServiceRequest"] + }, + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "410606002", + "display": "Social service procedure" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "food-insecurity", + "display": "Food Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "464031000124101", + "display": "Referral to food pantry program" + } + ] + }, + "quantity": { + "system": "http://unitsofmeasure.org", + "code": "mo", + "unit": "month", + "comparator": "<=", + "value": 6 + }, + "subject": { + "reference": "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "authoredOn": "2017-01-01T00:00:00.000Z", + "requester": { + "reference": "Organization/scn_coordination_platform" + }, + "reasonReference": [ + {"reference": "Observation/ObservationResponseQuestion_3"}, + {"reference": "Observation/ObservationResponseQuestion_4"} + ], + "encounter": { + "reference": "Encounter/urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df" + }, + "requester": {"reference": "Practitioner/social_worker_espinoza"}, + "performer": [ + {"reference": "Organization/cbo"} + ] + } + }, + { + "fullUrl": "ObservationResponseQuestion_3", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_3" + } + }, + { + "fullUrl": "ObservationResponseQuestion_4", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_4" + } + }, + { + "fullUrl": "scn_coordination_platform", + "resource" : { + "resourceType" : "Organization", + "id" : "scn_coordination_platform", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.scn_coordination_platform.gov/facility/scn_1", + "value" : "2.16.840.1.113883.3.200" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "other", + "display" : "Other" + }] + }], + "name" : "CareRidge" + } + }, + { + "fullUrl": "care_giver_bob_kelso", + "resource": { + "resourceType": "Practitioner", + "id": "care_giver_bob_kelso", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"] + }, + "name": [ + { + "family": "Kelso", + "given": [ + "Bob" + ], + "suffix": [ + "MD", "CDPAD" + ], + "text": "Bob Kelso MD" + } + ], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "NPI" + }] + }, + "system" : "http://hl7.org/fhir/sid/us-npi", + "value" : "123456789", + "assigner" : { + "reference" : "Organization/cbo" + } + }] + } + }, + { + "fullUrl": "social_worker_espinoza", + "resource": { + "resourceType": "Practitioner", + "id": "social_worker_espinoza", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"] + }, + "name": [ + { + "family": "espinoza", + "given": [ + "carla" + ], + "suffix": [ + "NASW", "CDPAD" + ], + "text": "carla espinoza" + } + ], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "NPI" + }] + }, + "system" : "http://hl7.org/fhir/sid/us-npi", + "value" : "001010101", + "assigner" : { + "reference" : "Organization/scn" + } + }] + } + }, + { + "fullUrl": "urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df", + "resource": { + "resourceType": "Encounter", + "id": "9cf94822-3fe7-e598-649e-52bf35f8a0df", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ { + "coding": [ { + "system": "http://snomed.info/sct", + "code": "405672008", + "display": "Direct questioning (procedure)" + } ], + "text": "Direct questioning (procedure)" + } ], + "status": "finished", + "subject": { + "reference": "Patient/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + } + } + }, + { + "fullUrl": "cbo", + "resource" : { + "resourceType" : "Organization", + "id" : "cbo", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.cbo.gov/facility/cbo_1", + "value" : "2.16.840.1.113883.3.300" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "cg", + "display" : "Community Group" + }] + }], + "name" : "CBO" + } + } + ] + } \ No newline at end of file diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTaskCompleted.json b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTaskCompleted.json new file mode 100644 index 0000000..873d48f --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/TestTaskCompleted.json @@ -0,0 +1,365 @@ +{ + "resourceType": "Bundle", + "id": "8ef1d025-95df-35f0-6218-7b6774190dd1", + "type": "transaction", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/SHINNYBundleProfile" + ] + }, + "timestamp": "2024-02-023T00:00:00Z", + "entry": [ + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc", + "resource" : { + "resourceType" : "Patient", + "id" : "98065610-3da2-1442-f01f-49fc5f30afcc", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language" : "en", + "extension" : [{ + "extension" : [{ + "url" : "ombCategory", + "valueCoding" : { + "system" : "urn:oid:2.16.840.1.113883.6.238", + "code" : "2106-3", + "display" : "White" + } + } + ], + "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" : "2135-2", + "display" : "Hispanic or Latino" + } + }], + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode" : "F" + }], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MR" + }] + }, + "system" : "http://www.scn.gov/facility/CUMC", + "value" : "11223344", + "assigner" : { + "reference" : "Organization/scn_coordination_platform" + } + }, + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MA" + }] + }, + "system" : "http://www.medicaid.gov/", + "value" : "AA12345C", + "assigner" : { + "reference" : "Organization/2.16.840.1.113883.3.249" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "SS", + "display": "Social Security Number" + } + ], + "text": "Social Security Number" + }, + "system": "http://hl7.org/fhir/sid/us-ssn", + "value": "999-34-2964" + }], + "name" : [{ + "family" : "Doe", + "given" : ["Jon"], + "prefix": [ + "Mr.", "Dr.", "PhD", "CCNA" + ], + "suffix": [ + "Jr.", "III" + ] + }], + "gender" : "female", + "birthDate" : "1981-07-16", + "address" : [{ + "text" : "115 Broadway\tApt2", + "line" : ["115 Broadway", + "Apt2"], + "city" : "New York", + "state" : "NY", + "postalCode" : "10032" + }], + "telecom": [ + { + "system": "phone", + "value": "555-120-6047", + "use": "home" + } + ], + "communication" : [ + { + "language" : { + "coding" : [{ + "code" : "EN", + "system": "urn:iso:std:iso:639" + }] + }, + "preferred" : true, + "extension": [ + { + "url": "http://shinny.org/fhir/StructureDefinition/fluency-level", + "valueInteger": 7 + }, + { + "url": "http://shinny.org/fhir/StructureDefinition/writing-level", + "valueInteger": 7 + } + ] + } + ] + } +}, + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "resource" : { + "resourceType" : "Task", + "id" : "SDOHCC-TaskReferralManagementOrderFulfillmentAcceptedExample", + "meta" : { + "profile" : ["http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SHINNYSDOHTaskForReferralManagement"] + }, + "status" : "completed", + "intent" : "order", + "code" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/CodeSystem/task-code", + "code" : "fulfill", + "display" : "Fulfill the focal request" + }] + }, + "focus" : { + "reference" : "ServiceRequest/98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109" + }, + "for" : { + "reference" : "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "authoredOn" : "2020-09-11T21:56:54.671Z", + "requester" : { + "reference" : "Practitioner/care_giver_bob_kelso" + }, + "owner" : { + "reference" : "Organization/cbo" + }, + "restriction": { + "repetitions": 0, + "recipient": { + "reference" : "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + } + }, + "output" : [{ + "type" : { + "coding" : [{ + "system" : "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code" : "resulting-activity", + "display" : "Resulting Activity" + }] + }, + "valueReference" : { + "reference" : "Procedure/32b7a1f2-47f6-4572-8082-cc7fbfbb37d8" + } + }] + } + }, + { + "fullUrl": "urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0dz", + "resource": { + "resourceType": "Encounter", + "id": "9cf94822-3fe7-e598-649e-52bf35f8a0df", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "status": "finished", + "subject": { + "reference": "Patient/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + } + } + }, + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "resource" : { + "resourceType": "ServiceRequest", + "id": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/SHINNYSDOHServiceRequest"] + }, + "status": "completed", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "410606002", + "display": "Social service procedure" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "food-insecurity", + "display": "Food Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "464031000124101", + "display": "Referral to food pantry program" + } + ] + }, + "subject": { + "reference": "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "quantity": { + "system": "http://unitsofmeasure.org", + "code": "mo", + "unit": "month", + "comparator": "<=", + "value": 6 + }, + "authoredOn": "2017-01-01T00:00:00.000Z", + "requester": { + "reference": "Organization/scn_coordination_platform" + }, + "reasonReference": [ + {"reference": "Observation/ObservationResponseQuestion_3"}, + {"reference": "Observation/ObservationResponseQuestion_4"} + ], + "encounter": { + "reference": "Encounter/urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df" + }, + "requester": {"reference": "Practitioner/social_worker_espinoza"}, + "performer": [ + {"reference": "Organization/cbo"} + ] + } + }, + { + "fullUrl": "scn_coordination_platform", + "resource" : { + "resourceType" : "Organization", + "id" : "scn_coordination_platform", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.scn.gov/", + "value" : "scn_coordination_platform_1" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "other", + "display" : "Other" + }] + }], + "name" : "CareRidge" + } + }, + { + "fullUrl": "cbo", + "resource" : { + "resourceType" : "Organization", + "id" : "cbo", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.cbo.gov/", + "value" : "cbo_1" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "cg", + "display" : "Community Group" + }] + }], + "name" : "CBO" + } + }, + { + "fullUrl": "care_giver_bob_kelso", + "resource": { + "resourceType": "Practitioner", + "id": "care_giver_bob_kelso", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"] + }, + "name": [ + { + "family": "Kelso", + "given": [ + "Bob" + ], + "suffix": [ + "MD", "CDPAD" + ], + "text": "Bob Kelso MD" + } + ], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "NPI" + }] + }, + "system" : "http://hl7.org/fhir/sid/us-npi", + "value" : "123456789", + "assigner" : { + "reference" : "Organization/cbo" + } + }] + } + } + ] +} \ No newline at end of file diff --git "a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ProcedureCompleted.json" "b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ProcedureCompleted.json" new file mode 100644 index 0000000..86d0192 --- /dev/null +++ "b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ProcedureCompleted.json" @@ -0,0 +1,436 @@ +{ + "resourceType": "Bundle", + "fullUrl": "urn:uuid:58e1e1fd-ac64-0f97-05bd-9bdd58fecad2", + + "id": "8ef1d025-95df-35f0-6218-7b6774190dd1", + "type": "transaction", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/SHINNYBundleProfile" + ] + }, + "timestamp": "2024-02-023T00:00:00Z", + "entry": [ + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afzz", + "resource" : { + "resourceType" : "Patient", + "id" : "98065610-3da2-1442-f01f-49fc5f30afzz", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language" : "en", + "extension" : [{ + "extension" : [{ + "url" : "ombCategory", + "valueCoding" : { + "system" : "urn:oid:2.16.840.1.113883.6.238", + "code" : "2106-3", + "display" : "White" + } + } + ], + "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" : "2135-2", + "display" : "Hispanic or Latino" + } + }], + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode" : "F" + }], + }], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MR" + }] + }, + "system" : "http://www.scn.gov/facility/CBO", + "value" : "101010101", + "assigner" : { + "reference" : "Organization/cbo" + } + }, + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MA" + }] + }, + "system" : "http://www.medicaid.gov/", + "value" : "AA12345C", + "assigner" : { + "reference" : "Organization/2.16.840.1.113883.3.249" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "SS", + "display": "Social Security Number" + } + ], + "text": "Social Security Number" + }, + "system": "http://hl7.org/fhir/sid/us-ssn", + "value": "999-34-2964" + }], + "name" : [{ + "family" : "Doe", + "given" : ["Jon"], + "prefix": [ + "Mr.", "Dr.", "PhD", "CCNA" + ], + "suffix": [ + "Jr.", "III" + ] + }], + "gender" : "female", + "birthDate" : "1981-07-16", + "address" : [{ + "text" : "115 Broadway\tApt2", + "line" : ["115 Broadway", + "Apt2"], + "city" : "New York", + "state" : "NY", + "postalCode" : "10032" + }], + "telecom": [ + { + "system": "phone", + "value": "555-120-6047", + "use": "home" + } + ], + "communication" : [ + { + "language" : { + "coding" : [{ + "code" : "EN", + "system": "urn:iso:std:iso:639" + }] + }, + "preferred" : true, + "extension": [ + { + "url": "http://shinny.org/fhir/StructureDefinition/fluency-level", + "valueInteger": 7 + }, + { + "url": "http://shinny.org/fhir/StructureDefinition/writing-level", + "valueInteger": 7 + } + ] + } + ] + } + }, + { + "fullUrl": "urn:uuid:9cf94822-3fe7-e598-649e-12345", + "resource": { + "resourceType": "Encounter", + "id": "9cf94822-3fe7-e598-649e-12345", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "status": "finished", + "subject": { + "reference": "Patient/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afzz" + } + } + }, + { + "fullUrl": "32b7a1f2-47f6-4572-8082-cc7fbfbb37d8", + "resource": { + "resourceType": "Procedure", + "id": "32b7a1f2-47f6-4572-8082-cc7fbfbb37d8", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-Procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "710925007", + "display": "Provision of food" + } + ] + }, + "subject": { + "reference": "Patient/98065610-3da2-1442-f01f-49fc5f30afzz" + }, + "encounter": { + "reference": "Encounter/urn:uuid:9cf94822-3fe7-e598-649e-12345" + }, + "reasonReference": [ + {"reference": "Observation/ObservationResponseQuestion_3"}, + {"reference": "Observation/ObservationResponseQuestion_4"} + ], + "performedPeriod": { + "start": "2024-11-13T19:00:01+00:00", + "end": "2024-11-13T19:30:01+00:00" + } + }, + "performer": [ + { + "actor": { + "reference": "Practitioner/care_giver_bob_kelso" + }, + "onBehalfOf": { + "reference": "Organization/cbo" + }, + "function": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "224597004", + "display": "Trained nurse counselor" + } + ] + } + } + ] + }, + { + "fullUrl": "ObservationResponseQuestion_3", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_3" + } + }, + { + "fullUrl": "ObservationResponseQuestion_4", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_4" + } + }, + { + "fullUrl": "care_giver_bob_kelso", + "resource": { + "resourceType": "Practitioner", + "id": "care_giver_bob_kelso", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"] + }, + "name": [ + { + "family": "Kelso", + "given": [ + "Bob" + ], + "suffix": [ + "MD", "CDPAD" + ], + "text": "Bob Kelso MD" + } + ], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "NPI" + }] + }, + "system" : "http://hl7.org/fhir/sid/us-npi", + "value" : "123456789", + "assigner" : { + "reference" : "Organization/cbo" + } + }] + } + }, + { + "fullUrl": "cbo", + "resource" : { + "resourceType" : "Organization", + "id" : "cbo", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.cbo.gov/", + "value" : "cbo_1" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "cg", + "display" : "Community Group" + }] + }], + "name" : "CBO" + } + } + ] +} \ No newline at end of file diff --git "a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ServiceRequest.json" "b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ServiceRequest.json" new file mode 100644 index 0000000..901e5d3 --- /dev/null +++ "b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/Test\342\200\213ServiceRequest.json" @@ -0,0 +1,475 @@ +{ + "resourceType": "Bundle", + "id": "8ef1d025-95df-35f0-6218-7b6774190dd1", + "type": "transaction", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/SHINNYBundleProfile" + ] + }, + "timestamp": "2024-02-023T00:00:00Z", + "entry": [ + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc", + "resource" : { + "resourceType" : "Patient", + "id" : "98065610-3da2-1442-f01f-49fc5f30afcc", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shinny-patient"] + }, + "language" : "en", + "extension" : [ + { + "extension" : [{ + "url" : "ombCategory", + "valueCoding" : { + "system" : "urn:oid:2.16.840.1.113883.6.238", + "code" : "2106-3", + "display" : "White" + } + } + ], + "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" : "2135-2", + "display" : "Hispanic or Latino" + } + }], + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" + }, + { + "url" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex", + "valueCode" : "F" + }], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MR" + }] + }, + "system" : "http://www.scn.gov/facility/CUMC", + "value" : "11223344", + "assigner" : { + "reference" : "Organization/scn_coordination_platform" + } + }, + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "MA" + }] + }, + "system" : "http://www.medicaid.gov/", + "value" : "AA12345C", + "assigner" : { + "reference" : "Organization/2.16.840.1.113883.3.249" + } + }, + { + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "SS", + "display": "Social Security Number" + } + ], + "text": "Social Security Number" + }, + "system": "http://hl7.org/fhir/sid/us-ssn", + "value": "999-34-2964" + }], + "name" : [{ + "family" : "Doe", + "given" : ["Jon"], + "prefix": [ + "Mr.", "Dr.", "PhD", "CCNA" + ], + "suffix": [ + "Jr.", "III" + ] + }], + "gender" : "female", + "birthDate" : "1981-07-16", + "address" : [{ + "text" : "115 Broadway\tApt2", + "line" : ["115 Broadway", + "Apt2"], + "city" : "New York", + "state" : "NY", + "postalCode" : "10032" + }], + "telecom": [ + { + "system": "phone", + "value": "555-120-6047", + "use": "home" + } + ], + "communication" : [ + { + "language" : { + "coding" : [{ + "code" : "EN", + "system": "urn:iso:std:iso:639" + }] + }, + "preferred" : true, + "extension": [ + { + "url": "http://shinny.org/fhir/StructureDefinition/fluency-level", + "valueInteger": 7 + }, + { + "url": "http://shinny.org/fhir/StructureDefinition/writing-level", + "valueInteger": 7 + } + ] + } + ] + } + }, + { + "fullUrl": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "resource" : { + "resourceType": "ServiceRequest", + "id": "98065610-3da2-1442-f01f-49fc5f30afcc_467771000124109", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/SHINNYSDOHServiceRequest"] + }, + "status": "active", + "intent": "order", + "category": [ + { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "410606002", + "display": "Social service procedure" + } + ] + }, + { + "coding": [ + { + "system": "http://hl7.org/fhir/us/sdoh-clinicalcare/CodeSystem/SDOHCC-CodeSystemTemporaryCodes", + "code": "food-insecurity", + "display": "Food Insecurity" + } + ] + } + ], + "code": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "464031000124101", + "display": "Referral to food pantry program" + } + ] + }, + "quantity": { + "system": "http://unitsofmeasure.org", + "code": "mo", + "unit": "month", + "comparator": "<=", + "value": 6 + }, + "subject": { + "reference": "Patient/98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "authoredOn": "2017-01-01T00:00:00.000Z", + "reasonReference": [ + {"reference": "Observation/ObservationResponseQuestion_3"}, + {"reference": "Observation/ObservationResponseQuestion_4"} + ], + "encounter": { + "reference": "Encounter/urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df" + }, + "requester": {"reference": "Practitioner/social_worker_espinoza"}, + "performer": [ + {"reference": "Organization/cbo"} + ] + } + }, + { + "fullUrl": "ObservationResponseQuestion_3", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_3" + } + }, + { + "fullUrl": "ObservationResponseQuestion_4", + "resource": { + "resourceType": "Observation", + "meta": { + "lastUpdated": "2024-02-23T00:00:00Z", + "profile": [ + "http://hl7.org/fhir/us/sdoh-clinicalcare/StructureDefinition/SDOHCC-ObservationScreeningResponse" + ] + }, + "status": "final", + "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" + } + ] + } + ], + "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/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + }, + "effectiveDateTime": "2023-07-12T16:08:00.000Z", + "issued": "2023-07-12T16:08:00.000Z", + "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" + } + ] + } + ], + "id": "ObservationResponseQuestion_4" + } + }, + { + "fullUrl": "cbo", + "resource" : { + "resourceType" : "Organization", + "id" : "cbo", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.cbo.gov/facility/cbo_1", + "value" : "2.16.840.1.113883.3.300" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "cg", + "display" : "Community Group" + }] + }], + "name" : "CBO" + } + }, + { + "fullUrl": "urn:uuid:9cf94822-3fe7-e598-649e-52bf35f8a0df", + "resource": { + "resourceType": "Encounter", + "id": "9cf94822-3fe7-e598-649e-52bf35f8a0df", + "meta": { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile": [ + "http://shinny.org/StructureDefinition/shin-ny-encounter" + ] + }, + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "FLD" + }, + "type": [ { + "coding": [ { + "system": "http://snomed.info/sct", + "code": "405672008", + "display": "Direct questioning (procedure)" + } ], + "text": "Direct questioning (procedure)" + } ], + "status": "finished", + "subject": { + "reference": "Patient/urn:uuid:98065610-3da2-1442-f01f-49fc5f30afcc" + } + } + }, + { + "fullUrl": "scn_coordination_platform", + "resource" : { + "resourceType" : "Organization", + "id" : "scn_coordination_platform", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://shinny.org/StructureDefinition/shin-ny-organization"] + }, + "identifier" : [{ + "system" : "http://www.scn.gov/", + "value" : "scn_coordination_platform_1" + }], + "active" : true, + "type" : [{ + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/organization-type", + "code" : "other", + "display" : "Other" + }] + }], + "name" : "CareRidge" + } + }, + { + "fullUrl": "social_worker_espinoza", + "resource": { + "resourceType": "Practitioner", + "id": "social_worker_espinoza", + "meta" : { + "lastUpdated": "2024-02-023T00:00:00Z", + "profile" : ["http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"] + }, + "name": [ + { + "family": "espinoza", + "given": [ + "carla" + ], + "suffix": [ + "NASW", "CDPAD" + ], + "text": "carla espinoza" + } + ], + "identifier" : [ + { + "type" : { + "coding" : [{ + "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", + "code" : "NPI" + }] + }, + "system" : "http://hl7.org/fhir/sid/us-npi", + "value" : "001010101", + "assigner" : { + "reference" : "Organization/scn" + } + }] + } + } + ] + } \ No newline at end of file diff --git a/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/fhir-service.test.http b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/fhir-service.test.http new file mode 100644 index 0000000..d3803ef --- /dev/null +++ b/assurance/1115-waiver/ahc-hrsn/screening/regression-test-prime/fhir-service-prime/src/2024-06-27/fhir-service.test.http @@ -0,0 +1,94 @@ +# this file is for testing and verifying the FHIR service with two api endpoints +# ------------------------------------------------------------------------ +# * requires the `vscode-httpyac` Visual Studio Code extension within IDE +# or httpYac CLI when executing outside of the IDE +# * this service has 2 endpoints /Bundle/$validate & /Bundle/ + +@hostName = http://localhost:8080 +{{ + // dotEnv is loaded by default so let's see if custom hostName is available; + // if $HTTPYAC_HOST is available use it first otherwise use $HOST + if(process.env.HOST) exports.hostName = process.env.HOST; + if(process.env.HTTPYAC_HOST) exports.hostName = process.env.HTTPYAC_HOST; +}} + +@contentType = application/json +@TECH_BD_FHIR_SERVICE_QE_IDENTIFIER = PARTNER1-TEST + +### /metadata endpoint should return FHIR CapabilityStatement + +GET {{hostName}}/metadata +Content-Type: {{contentType}} +?? status == 200 +?? header content-type == text/html;charset=UTF-8 +?? response.body != null + + +### /Bundle/$validate should validate Test​ServiceRequest.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +?? status == 200 +?? response.body != null +?? js response.parsedBody.OperationOutcome.resourceType == OperationOutcome +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].severity == FATAL +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.line == null +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.column == null + +< Test​ServiceRequest.json + +### /Bundle/$validate should validate TestTask.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +?? status == 200 +?? response.body != null +?? js response.parsedBody.OperationOutcome.resourceType == OperationOutcome +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].severity == FATAL +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.line == null +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.column == null + +< TestTask.json + + +### /Bundle/$validate should validate TestTaskCompleted.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +?? status == 200 +?? response.body != null +?? js response.parsedBody.OperationOutcome.resourceType == OperationOutcome +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].severity == FATAL +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.line == null +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.column == null + +< TestTaskCompleted.json + +### /Bundle/$validate should validate Test​ProcedureCompleted.json + +POST {{hostName}}/Bundle/$validate HTTP/1.1 +Content-Type: {{contentType}} +X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +?? status == 200 +?? response.body != null +?? js response.parsedBody.OperationOutcome.resourceType == OperationOutcome +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].severity == FATAL +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.line == null +?? js response.parsedBody.OperationOutcome.validationResults[0].issues[0].location.column == null + + +< Test​ProcedureCompleted.json + + +### Bundle should validate and submit Test​ServiceRequest.json.json as @TECH_BD_FHIR_SERVICE_QE_IDENTIFIER +# DO NOT use any header variables which are not required by QEs +POST {{hostName}}/Bundle?include-incoming-payload-in-db=true HTTP/1.1 +Content-Type: {{contentType}} +X-TechBD-Tenant-ID: {{TECH_BD_FHIR_SERVICE_QE_IDENTIFIER}} +?? status == 200 +?? response.body != null + +< Test​ServiceRequest.json From d680015774ccf7ac28101883d04fbfb9725b8513 Mon Sep 17 00:00:00 2001 From: vinodaravind01 Date: Thu, 27 Jun 2024 17:21:29 +0530 Subject: [PATCH 2/2] feat: update folder date --- .../ahc-hrsn/screening/regression-test-prime/regression-test.sh | 2 +- .../docs/1115-hub/fhir-services/regression-test-results.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 7ddff5d..208771e 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-06-24) +ASSURANCE_FHIR_SRC_DIR=$(readlink -f $SCRIPT_DIR/fhir-service-prime/src/2024-06-27) 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 38b0aff..8305d8e 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-06-24) (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-06-27) (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/06)