{
  "hookInstance": "3efef233-82fa-461b-9436-c799313e9a90",
  "fhirServer": "http://localhost:8080/fhir",
  "hook": "order-sign",
  "context": {
    "userId": "Practitioner/example",
    "patientId": "Patient/example-rec-09-false-due-to-PDMP-review-within-90-days",
    "draftOrders": {
      "resourceType": "Bundle",
      "type": "collection",
      "entry": [
        {
          "resource": {
            "resourceType": "MedicationRequest",
            "id": "f4540e09-8aaf-4d77-86be-9fd9a4d6a06c-3",
            "extension": [
              {
                "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
                "extension": [
                  {
                    "url": "dateLastUpdated",
                    "valueDateTime": "2023-05-01"
                  },
                  {
                    "url": "frequency",
                    "valueDuration": {
                      "value": 30.0,
                      "unit": "days",
                      "system": "http://unitsofmeasure.org",
                      "code": "d"
                    }
                  }
                ]
              }
            ],
            "status": "active",
            "intent": "order",
            "category": [
              {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/fhir/CodeSystem/medicationdispense-category",
                    "code": "community",
                    "display": "Community"
                  }
                ]
              }
            ],
            "medicationCodeableConcept": {
              "coding": [
                {
                  "system": "http://www.nlm.nih.gov/research/umls/rxnorm",
                  "code": "1010603",
                  "display": "Suboxone 2 MG / 0.5 MG Sublingual Film"
                }
              ]
            },
            "subject": {
              "reference": "Patient/example-rec-09-false-due-to-PDMP-review-within-90-days"
            },
            "authoredOn": "2023-05-01",
            "dosageInstruction": [
              {
                "timing": {
                  "repeat": {
                    "frequency": 1,
                    "period": 1.0,
                    "periodUnit": "d"
                  }
                },
                "asNeededBoolean": false
              }
            ],
            "dispenseRequest": {
              "validityPeriod": {
                "start": "2023-05-01T00:00:00-06:00",
                "end": "2023-08-01T00:00:00-06:00"
              },
              "numberOfRepeatsAllowed": 1,
              "expectedSupplyDuration": {
                "value": 30.0,
                "unit": "days",
                "system": "http://unitsofmeasure.org",
                "code": "d"
              }
            }
          }
        }
      ]
    }
  },
  "prefetch": {
    "item1": {
        "resourceType": "Patient",
        "id": "example-rec-09-false-due-to-PDMP-review-within-90-days",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 30.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "birthDate": "2003-05-01"
      }
    },
    "item2": {
        "resourceType": "Procedure",
        "id": "d2e1e4f3-9117-46c3-a8ee-125c58674997",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 30.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "status": "completed",
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "461651000124104",
              "display": "Review of prescription drug monitoring program record done (situation)"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-09-false-due-to-PDMP-review-within-90-days"
        },
        "performedPeriod": {
          "start": "2023-03-01",
          "end": "2023-03-01"
        }
      }
    }
}
