{
  "hookInstance": "3d75f421-9eeb-46d0-aa18-9aa9c720833a",
  "fhirServer": "http://localhost:8080/fhir",
  "hook": "patient-view",
  "context": {
    "userId": "Practitioner/example",
    "patientId": "Patient/example-rec-12-criteria-invalid"
  },
  "prefetch": {
    "item1": {
        "resourceType": "Patient",
        "id": "example-rec-12-criteria-invalid",
        "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": null,
    "item3": {
        "resourceType": "Condition",
        "id": "example-rec-12-criteria-invalid",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 1.0,
                  "unit": "days",
                  "system": "http://unitsofmeasure.org",
                  "code": "d"
                }
              }
            ]
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code": "active",
              "display": "Active Condition"
            }
          ]
        },
        "category": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/condition-category",
                "code": "encounter-diagnosis",
                "display": "Encounter Diagnosis"
              }
            ]
          }
        ],
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "191865004",
              "display": "Combined opioid with other drug dependence"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-12-criteria-invalid"
        },
        "recordedDate": "2023-03-01"
      }
    },
    "item4": {
        "resourceType": "MedicationRequest",
        "id": "example-rec-12-criteria-invalid",
        "extension": [
          {
            "url": "http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/dataDateRoller",
            "extension": [
              {
                "url": "dateLastUpdated",
                "valueDateTime": "2023-05-01"
              },
              {
                "url": "frequency",
                "valueDuration": {
                  "value": 1.0,
                  "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": "1010600",
              "display": "Buprenorphine 2 MG / Naloxone 0.5 MG Sublingual Film"
            }
          ]
        },
        "subject": {
          "reference": "Patient/example-rec-12-criteria-invalid"
        },
        "encounter": {
          "reference": "Encounter/example-rec-12-criteria-invalid-context"
        },
        "authoredOn": "2023-05-01",
        "dosageInstruction": [
          {
            "timing": {
              "repeat": {
                "frequency": 1,
                "period": 12.0,
                "periodUnit": "d"
              }
            },
            "doseAndRate": [
              {
                "doseQuantity": {
                  "value": 1.0,
                  "unit": "tablet",
                  "system": "http://unitsofmeasure.org",
                  "code": "{tablet}"
                }
              }
            ]
          }
        ],
        "dispenseRequest": {
          "validityPeriod": {
            "start": "2023-05-01T00:00:00-06:00",
            "end": "2023-08-01T00:00:00-06:00"
          },
          "numberOfRepeatsAllowed": 3,
          "expectedSupplyDuration": {
            "value": 30.0,
            "unit": "days",
            "system": "http://unitsofmeasure.org",
            "code": "d"
          }
        }
    },
    "item5": null
  }
}
