From e100a39b7dbdc101366323653a92a4d52451663f Mon Sep 17 00:00:00 2001 From: Bryant Austin Date: Thu, 18 Aug 2022 10:51:04 -0600 Subject: [PATCH 1/3] updated requests for rec12 --- ...t-example-rec-12-patient-view-in-criteria-met.json | 11 +++++------ ...example-rec-12-patient-view-out-opioid-misuse.json | 5 +---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-in-criteria-met.json b/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-in-criteria-met.json index 5599d46a..ecc177e0 100644 --- a/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-in-criteria-met.json +++ b/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-in-criteria-met.json @@ -1,8 +1,7 @@ { "hookInstance": "17ff4874-b68a-490c-abaa-b62b1a91b1bd", "fhirServer": "http://localhost:8080/fhir", - "hook": "order-select", - + "hook": "patient-view", "context": { "userId": "Practitioner/example", "patientId": "Patient/example-rec-12-criteria-valid" @@ -20,7 +19,7 @@ "extension": [ { "url": "dateLastUpdated", - "valueDateTime": "2022-04-28" + "valueDateTime": "2022-07-28" }, { "url": "frequency", @@ -35,7 +34,7 @@ } ], "id": "example-rec-12-criteria-valid", - "birthDate": "2002-04-28" + "birthDate": "2002-07-28" } }, "item2": null, @@ -51,7 +50,7 @@ "extension": [ { "url": "dateLastUpdated", - "valueDateTime": "2022-04-28" + "valueDateTime": "2022-07-28" }, { "url": "frequency", @@ -107,7 +106,7 @@ } ] }, - "recordedDate": "2022-02-28" + "recordedDate": "2022-07-28" } }, "item4": null, diff --git a/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-out-opioid-misuse.json b/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-out-opioid-misuse.json index 75bb69a1..7cdb64ed 100644 --- a/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-out-opioid-misuse.json +++ b/input/pagecontent/requests/OpioidCDSREC12PatientView/request-example-rec-12-patient-view-out-opioid-misuse.json @@ -1,8 +1,7 @@ { "hookInstance": "3d75f421-9eeb-46d0-aa18-9aa9c720833a", "fhirServer": "http://localhost:8080/fhir", - "hook": "order-select", - + "hook": "patient-view", "context": { "userId": "Practitioner/example", "patientId": "Patient/example-rec-12-criteria-invalid" @@ -56,7 +55,6 @@ ] }, "verificationStatus": { - "code": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/condition-ver-status", @@ -64,7 +62,6 @@ "display": "Confirmed" } ] - } }, "subject": { "reference": "Patient/example-rec-12-criteria-invalid" From dd2defeaadba698ad523f43a3da0250192accee2 Mon Sep 17 00:00:00 2001 From: Bryant Austin Date: Thu, 18 Aug 2022 11:19:05 -0600 Subject: [PATCH 2/3] updated requests for rec05 --- ...example-rec-05-mme-greater-than-fifty.json | 164 ++++++++++-------- ...st-example-rec-05-mme-less-than-fifty.json | 156 +++++++++-------- 2 files changed, 173 insertions(+), 147 deletions(-) diff --git a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json index e3232df9..7c7d8efe 100644 --- a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json +++ b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json @@ -6,87 +6,103 @@ "userId": "Practitioner/example", "patientId": "Patient/example-rec-05-mme-greater-than-fifty", "encounterId": "Encounter/example-rec-05-mme-greater-than-fifty-context", - "selections": [ "MedicationRequest/example-rec-05-mme-greater-than-fifty-context" ], - "draftOrders": - { - "resourceType": "MedicationRequest", - "extension": [ - { - "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller", + "selections": [ + "MedicationRequest/example-rec-05-mme-greater-than-fifty-context" + ], + "draftOrders": { + "resourceType": "Bundle", + "id": "opioidcds-05-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "MedicationRequest", "extension": [ { - "url": "dateLastUpdated", - "valueDateTime": "2022-04-08" - }, - { - "url": "frequency", - "valueDuration": { - "value": 30.0, - "unit": "days", - "system": "http://unitsofmeasure.org", - "code": "d" + "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller", + "extension": [ + { + "url": "dateLastUpdated", + "valueDateTime": "2022-07-08" + }, + { + "url": "frequency", + "valueDuration": { + "value": 30.0, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + ] + } + ], + "id": "example-rec-05-mme-greater-than-fifty-context", + "status": "active", + "intent": "order", + "category": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community" + } + ] + }, + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "197696", + "display": "72 HR Fentanyl 0.075 MG/HR Transdermal System" } + ] + }, + "subject": { + "reference": "Patient/example-rec-05-mme-greater-than-fifty" + }, + "encounter": { + "reference": "Encounter/example-rec-05-mme-greater-than-fifty-context" + }, + "authoredOn": "2022-07-08", + "dosageInstruction": [ + { + "timing": { + "repeat": { + "frequency": 1, + "period": 3.0, + "periodUnit": "d" + } + }, + "asNeededBoolean": false, + "doseAndRate": [ + { + "doseQuantity": { + "value": 0.2, + "unit": "patch", + "system": "http://unitsofmeasure.org", + "code": "{patch}" + } + } + ] } - ] - } - ], - "id": "example-rec-05-mme-greater-than-fifty-context", - "status": "active", - "intent": "order", - "category": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", - "code": "community" - } - ] - }, - "medicationCodeableConcept": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls/rxnorm", - "code": "197696", - "display": "72 HR Fentanyl 0.075 MG/HR Transdermal System" - } - ] - }, - "subject": { - "reference": "Patient/example-rec-05-mme-greater-than-fifty" - }, - "encounter": { - "reference": "Encounter/example-rec-05-mme-greater-than-fifty-context" - }, - "authoredOn": "2022-04-08", - "dosageInstruction": [ - { - "timing": { - "repeat": { - "frequency": 1, - "period": 3.0, - "periodUnit": "d" + ], + "dispenseRequest": { + "validityPeriod": { + "start": "2022-07-08", + "end": "2022-10-08" + }, + "numberOfRepeatsAllowed": 3, + "expectedSupplyDuration": { + "value": 30, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" } - }, - "asNeededBoolean": false, - "doseQuantity": { - "value": 1.0, - "unit": "patch" } } - ], - "dispenseRequest": { - "validityPeriod": { - "start": "2022-04-08", - "end": "2022-10-08" - }, - "numberOfRepeatsAllowed": 3, - "expectedSupplyDuration": { - "value": 30, - "unit": "days", - "system": "http://unitsofmeasure.org", - "code": "d" - } } - } + ] + } }, "prefetch": { "item1": null, @@ -133,4 +149,4 @@ "item12": null, "item13": null } -} +} \ No newline at end of file diff --git a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json index 628d3f43..cf43233e 100644 --- a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json +++ b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json @@ -6,87 +6,97 @@ "userId": "Practitioner/example", "patientId": "Patient/example-rec-05-mme-less-than-fifty", "encounterId": "Encounter/example-rec-05-mme-less-than-fifty-context", - "selections": [ "MedicationRequest/example-rec-05-mme-less-than-fifty-context" ], - "draftOrders": - { - "resourceType": "MedicationRequest", - "extension": [ - { - "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller", + "selections": [ + "MedicationRequest/example-rec-05-mme-less-than-fifty-context" + ], + "draftOrders": { + "resourceType": "Bundle", + "id": "opioidcds-05-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "MedicationRequest", "extension": [ { - "url": "dateLastUpdated", - "valueDateTime": "2022-04-08" - }, + "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller", + "extension": [ + { + "url": "dateLastUpdated", + "valueDateTime": "2022-04-08" + }, + { + "url": "frequency", + "valueDuration": { + "value": 30.0, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" + } + } + ] + } + ], + "id": "example-rec-05-mme-less-than-fifty-context", + "status": "active", + "intent": "order", + "category": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", + "code": "community" + } + ] + }, + "medicationCodeableConcept": { + "coding": [ + { + "system": "http://www.nlm.nih.gov/research/umls/rxnorm", + "code": "197696", + "display": "72 HR Fentanyl 0.075 MG/HR Transdermal System" + } + ] + }, + "subject": { + "reference": "Patient/example-rec-05-mme-less-than-fifty" + }, + "encounter": { + "reference": "Encounter/example-rec-05-mme-less-than-fifty-context" + }, + "authoredOn": "2022-04-08", + "dosageInstruction": [ { - "url": "frequency", - "valueDuration": { - "value": 30.0, - "unit": "days", - "system": "http://unitsofmeasure.org", - "code": "d" + "timing": { + "repeat": { + "frequency": 1, + "period": 12.0, + "periodUnit": "d" + } + }, + "asNeededBoolean": false, + "doseQuantity": { + "value": 1.0, + "unit": "patch" } } - ] - } - ], - "id": "example-rec-05-mme-less-than-fifty-context", - "status": "active", - "intent": "order", - "category": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category", - "code": "community" - } - ] - }, - "medicationCodeableConcept": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls/rxnorm", - "code": "197696", - "display": "72 HR Fentanyl 0.075 MG/HR Transdermal System" - } - ] - }, - "subject": { - "reference": "Patient/example-rec-05-mme-less-than-fifty" - }, - "encounter": { - "reference": "Encounter/example-rec-05-mme-less-than-fifty-context" - }, - "authoredOn": "2022-04-08", - "dosageInstruction": [ - { - "timing": { - "repeat": { - "frequency": 1, - "period": 12.0, - "periodUnit": "d" + ], + "dispenseRequest": { + "validityPeriod": { + "start": "2022-04-08", + "end": "2022-10-08" + }, + "numberOfRepeatsAllowed": 3, + "expectedSupplyDuration": { + "value": 30, + "unit": "days", + "system": "http://unitsofmeasure.org", + "code": "d" } - }, - "asNeededBoolean": false, - "doseQuantity": { - "value": 1.0, - "unit": "patch" } } - ], - "dispenseRequest": { - "validityPeriod": { - "start": "2022-04-08", - "end": "2022-10-08" - }, - "numberOfRepeatsAllowed": 3, - "expectedSupplyDuration": { - "value": 30, - "unit": "days", - "system": "http://unitsofmeasure.org", - "code": "d" - } } - } + ] + } }, "prefetch": { "item1": null, @@ -133,4 +143,4 @@ "item12": null, "item13": null } -} +} \ No newline at end of file From d2b2865262746be89600fe66aa6211002068017f Mon Sep 17 00:00:00 2001 From: Bryant Austin Date: Thu, 18 Aug 2022 11:29:54 -0600 Subject: [PATCH 3/3] removed selection and changed doseQuantity to get it right --- .../request-example-rec-05-mme-greater-than-fifty.json | 5 +---- .../request-example-rec-05-mme-less-than-fifty.json | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json index 7c7d8efe..b2ce6192 100644 --- a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json +++ b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-greater-than-fifty.json @@ -6,9 +6,6 @@ "userId": "Practitioner/example", "patientId": "Patient/example-rec-05-mme-greater-than-fifty", "encounterId": "Encounter/example-rec-05-mme-greater-than-fifty-context", - "selections": [ - "MedicationRequest/example-rec-05-mme-greater-than-fifty-context" - ], "draftOrders": { "resourceType": "Bundle", "id": "opioidcds-05-bundle", @@ -77,7 +74,7 @@ "doseAndRate": [ { "doseQuantity": { - "value": 0.2, + "value": 1.0, "unit": "patch", "system": "http://unitsofmeasure.org", "code": "{patch}" diff --git a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json index cf43233e..e92d686e 100644 --- a/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json +++ b/input/pagecontent/requests/OpioidCDSREC05/request-example-rec-05-mme-less-than-fifty.json @@ -6,9 +6,6 @@ "userId": "Practitioner/example", "patientId": "Patient/example-rec-05-mme-less-than-fifty", "encounterId": "Encounter/example-rec-05-mme-less-than-fifty-context", - "selections": [ - "MedicationRequest/example-rec-05-mme-less-than-fifty-context" - ], "draftOrders": { "resourceType": "Bundle", "id": "opioidcds-05-bundle", @@ -75,7 +72,7 @@ }, "asNeededBoolean": false, "doseQuantity": { - "value": 1.0, + "value": 0.2, "unit": "patch" } }