Skip to content

Commit

Permalink
#335 2016 updated requests and responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna committed May 25, 2023
1 parent 8f930c1 commit b170f72
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 64 deletions.
100 changes: 36 additions & 64 deletions input/pagecontent/quick-start.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

<p>The next step is to load the content, i.e., the artifacts published in this implementation guide that
define the recommendation. For convenience, the resources for recommendation #10, patient-view
have all been added to the 'opioidcds-rec10-patientview-bundle'. The test data for this particular
have all been added to the 'opioidcds-rec10-patientview-bundle' (see below). The test data for this particular
quick start test case consists of two Medication resources that also need to be posted to the FHIR server.
These represent the patient's Medication history, the 'quickstart-medications-bundle' contains those resources. These
two bundles should be POSTed to the base URL of the server:</p>
Expand All @@ -79,15 +79,9 @@
<tr><th>Resource</th><th>Type</th><th>Description</th></tr>
</thead>
<tbody>
<tr>
<td>
<!-- TODO: change this to stable branch url once v2016 is released -->
<a href="https://raw.githubusercontent.com/cqframework/opioid-cds-r4/master/bundles/plandefinition/OpioidCDSREC10PatientView/OpioidCDSREC10PatientView-bundle.json">opioidcds-rec10-patientview-bundle</a>
</td>
<td>Bundle</td>
<td>All Required Content for Recommendation #10</td>
</tr>
</tbody>
<tr><td><a href="requests/QuickStart/opioidcds-10-patient-view-bundle.json">opioidcds-rec10-patientview-bundle</a></td><td>Bundle</td><td>All Required Content for Recommendation #10</td></tr>
<tr><td><a href="requests/QuickStart/quickstart-medications-bundle.json">quickstart-medications-bundle</a></td><td>Bundle</td><td>Test data for Quick Start test case</td></tr>
</tbody>
</table>

<div class="example">
Expand Down Expand Up @@ -143,21 +137,25 @@
<pre class="json">
{
"services": [
{
"hook": "patient-view",
"name": "PlanDefinition_Recommendation_10_Patient_View",
"title": "PlanDefinition - CDC 2016 Opioid Prescribing Guideline Recommendation #10 (patient-view)",
"description": "When prescribing opioids for chronic pain, providers should use urine drug testing before starting opioid therapy and consider urine drug testing at least annually to assess for prescribed medications as well as other controlled prescription drugs and illicit drugs.",
"id": "opioidcds-10-patient-view",
"prefetch": {
"item1": "Patient?_id={{context.patientId}}",
"item2": "MedicationRequest?patient={{context.patientId}}&amp;medication=http%3A%2F%2Fwww.nlm.nih.gov%2Fresearch%2Fumls%2Frxnorm|994277,snipped for brevity",
"item3": "Observation?patient={{context.patientId}}&amp;code=http%3A%2F%2Floinc.org|12478-4,snipped for brevity",
"item4": "Observation?patient={{context.patientId}}&amp;code=http%3A%2F%2Floinc.org|50542-0,snipped for brevity"
{
"hook": "patient-view",
"name": "PlanDefinition_Recommendation_10_Patient_View",
"title": "PlanDefinition - CDC Opioid Prescribing Guideline Recommendation #10 (patient-view)",
"description": "When prescribing opioids for subacute or chronic pain, providers should use urine drug testing before starting opioid therapy and consider urine drug testing at least annually to assess for prescribed medications as well as other controlled prescription drugs and illicit drugs.",
"id": "opioidcds-10-patient-view",
"prefetch": {
"item1": "Patient?_id=Patient/{{context.patientId}}",
"item2": "Condition?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/condition-category|encounter-diagnosis",
"item3": "Condition?patient=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/condition-category|problem-list-item",
"item4": "Condition?patient=Patient/{{context.patientId}}&category=http://hl7.org/fhir/us/core/CodeSystem/condition-category|health-concern",
"item5": "ServiceRequest?patient=Patient/{{context.patientId}}",
"item6": "Observation?subject=Patient/{{context.patientId}}&category=http://terminology.hl7.org/CodeSystem/observation-category|laboratory",
"item7": "Procedure?patient=Patient/{{context.patientId}}&code=http://snomed.info/sct|306205009,http://snomed.info/sct|305336008,http://snomed.info/sct|183919006,http://snomed.info/sct|428371000124100,http://snomed.info/sct|183920000,http://snomed.info/sct|183921001",
"item8": "Encounter?patient=Patient/{{context.patientId}}"
}
}
}
]
}
}
</pre>
</div>

Expand Down Expand Up @@ -198,47 +196,21 @@
<div class="example">
<pre class="json">
{
"cards": [
{
"summary": "Annual Urine Screening Check",
"indicator": "warning",
"detail": "Patients on opioid therapy should have a urine drug test performed every 12 months.",
"source": {
"label": "CDC 2016 Guideline for prescribing opioids for chronic pain",
"url": "https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fmmwr%2Fvolumes%2F65%2Frr%2Frr6501e1er.htm"
},
"suggestions": [
{
"label": "Order Urine Screening",
"actions": [
{
"type": "create",
"description": "Patients on opioid therapy should have a urine drug test performed every 12 months.",
"resource": {
"resourceType": "ProcedureRequest",
"id": "29c794f0-b3e3-47d1-975c-ff0cd6de494b",
"status": "draft",
"intent": "order",
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "310627008",
"display": "Urine drug screening (procedure)"
}
]
},
"subject": {
"reference": "Patient/example-rec-10-no-screenings"
}
}
}
]
}
]
}
]
} </pre>
"cards": [
{
"summary": "Patient May Have Unexpected Toxicology Test Results",
"detail": "Patients on opioid therapy should have a urine drug test performed every 12 months. Consult [2022 CDC Clinical Practice Guideline Recommendation 10](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=evidence%20type%3A%204).-,Implementation%20Considerations,-Toxicology%20testing%20should) for more guidance regarding toxicology testing.",
"indicator": "warning",
"source": {
"label": "CDC guideline for prescribing opioids for chronic pain",
"uri": "https://www.federalregister.gov/documents/2022/02/10/2022-02802/proposed-2022-cdc-clinical-practice-guideline-for-prescribing-opioids",
"icon": "https://www.federalregister.gov/documents/2022/02/10/2022-02802/proposed-2022-cdc-clinical-practice-guideline-for-prescribing-opioids"
},
"links": []
}
]
}
</pre>
</div>

<a name="api-request-and-response-cds-hooks-client"> </a>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
{
"resourceType": "Bundle",
"entry": [
{
"resource": {
"resourceType": "MedicationRequest",
"id": "example-rec-10-patient-view-no-screenings-context",
"extension": [
{
"url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
"extension": [
{
"url": "dateLastUpdated",
"valueDateTime": "2022-12-13"
},
{
"url": "frequency",
"valueDuration": {
"value": 30,
"unit": "days",
"system": "http://unitsofmeasure.org",
"code": "d"
}
}
]
}
],
"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-10-patient-view-no-screenings"
},
"encounter": {
"reference": "Encounter/example-rec-10-patient-view-no-screenings-context"
},
"authoredOn": "2022-12-13",
"dosageInstruction": [
{
"timing": {
"repeat": {
"frequency": 1,
"period": 12,
"periodUnit": "d"
}
},
"asNeededBoolean": false,
"doseAndRate": [
{
"doseQuantity": {
"value": 1,
"unit": "patch",
"system": "http://unitsofmeasure.org",
"code": "{patch}"
}
}
]
}
],
"dispenseRequest": {
"validityPeriod": {
"start": "2022-12-13T00:00:00-07:00",
"end": "2023-03-15T00:00:00-06:00"
},
"numberOfRepeatsAllowed": 3,
"expectedSupplyDuration": {
"value": 30,
"unit": "days",
"system": "http://unitsofmeasure.org",
"code": "d"
}
}
},
"request": {
"method": "PUT",
"url": "MedicationRequest/example-rec-10-patient-view-no-screenings-context"
}
},
{
"resource": {
"resourceType": "MedicationRequest",
"id": "example-rec-10-patient-view-no-screenings-prefetch",
"extension": [
{
"url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
"extension": [
{
"url": "dateLastUpdated",
"valueDateTime": "2022-12-13"
},
{
"url": "frequency",
"valueDuration": {
"value": 30,
"unit": "days",
"system": "http://unitsofmeasure.org",
"code": "d"
}
}
]
}
],
"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": "1049502",
"display": "12 HR Oxycodone Hydrochloride 10 MG Extended Release Oral Tablet"
}
]
},
"subject": {
"reference": "Patient/example-rec-10-patient-view-no-screenings"
},
"encounter": {
"reference": "Encounter/example-rec-10-patient-view-no-screenings-prefetch"
},
"authoredOn": "2022-09-14",
"dosageInstruction": [
{
"timing": {
"repeat": {
"frequency": 3,
"period": 1,
"periodUnit": "d"
}
},
"asNeededBoolean": false,
"doseAndRate": [
{
"doseQuantity": {
"value": 1,
"unit": "tablet",
"system": "http://unitsofmeasure.org",
"code": "{tablet}"
}
}
]
}
],
"dispenseRequest": {
"validityPeriod": {
"start": "2022-09-14T00:00:00-06:00",
"end": "2022-12-13T00:00:00-07:00"
},
"numberOfRepeatsAllowed": 3,
"expectedSupplyDuration": {
"value": 30,
"unit": "days",
"system": "http://unitsofmeasure.org",
"code": "d"
}
}
},
"request": {
"method": "PUT",
"url": "MedicationRequest/example-rec-10-patient-view-no-screenings-prefetch"
}
}
]
}

0 comments on commit b170f72

Please sign in to comment.