{
  "resourceType" : "MedicationRequest",
  "id" : "polaris-medicationrequest-detailed-example",
  "meta" : {
    "source" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-pipeline-v2.3.0",
    "profile" : ["https://fhir.apps.health/StructureDefinition/polaris-core-medicationrequest"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">Prescribed ferrous sulfate 325 mg oral tablet for Avery Linwood on April 8, 2025. Take 1 tablet by mouth daily. Course duration: 90 days (until 2025-07-07). 2 repeats allowed.</div>"
  },
  "contained" : [{
    "resourceType" : "Medication",
    "id" : "med-ferrous-sulfate",
    "meta" : {
      "source" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-pipeline-v2.3.0",
      "profile" : ["https://fhir.apps.health/StructureDefinition/polaris-containedmedication-core"]
    },
    "extension" : [{
      "extension" : [{
        "url" : "strengthText",
        "valueString" : "325mg"
      },
      {
        "extension" : [{
          "url" : "numerator",
          "valueQuantity" : {
            "value" : 325,
            "unit" : "mg",
            "system" : "http://unitsofmeasure.org",
            "code" : "mg"
          }
        },
        {
          "url" : "denominator",
          "valueQuantity" : {
            "value" : 1,
            "unit" : "tablet",
            "system" : "http://unitsofmeasure.org",
            "code" : "1"
          }
        }],
        "url" : "strengthQuantity"
      }],
      "url" : "https://fhir.apps.health/StructureDefinition/polaris-medication-strength"
    }],
    "code" : {
      "coding" : [{
        "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-medication-raw-code",
        "code" : "FE325",
        "display" : "Ferrous sulfate 325mg"
      }],
      "text" : "Ferrous sulfate 325mg"
    },
    "form" : {
      "text" : "Oral Tablet"
    }
  }],
  "identifier" : [{
    "use" : "official",
    "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-medicationrequest-identifier",
    "value" : "RX-avery-20250408-detailed"
  },
  {
    "use" : "secondary",
    "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-medicationrequest-raw-code",
    "value" : "EMR-RX-2025-04-08-001"
  }],
  "status" : "active",
  "statusReason" : {
    "text" : "New prescription for iron deficiency anemia"
  },
  "intent" : "order",
  "medicationReference" : {
    "reference" : "#med-ferrous-sulfate"
  },
  "subject" : {
    "identifier" : {
      "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-patient-identifier",
      "value" : "1234567890"
    }
  },
  "encounter" : {
    "identifier" : {
      "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-encounter-identifier",
      "value" : "enc-avery-20250408-01"
    }
  },
  "authoredOn" : "2025-04-08",
  "requester" : {
    "identifier" : {
      "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-practitionerrole-identifier",
      "value" : "NAVARRO-ROLE-001"
    }
  },
  "dosageInstruction" : [{
    "text" : "Take one tablet by mouth daily.",
    "timing" : {
      "repeat" : {
        "boundsPeriod" : {
          "start" : "2025-04-08",
          "end" : "2025-07-07"
        }
      }
    },
    "route" : {
      "coding" : [{
        "system" : "http://snomed.info/sct",
        "code" : "26643006",
        "display" : "Oral route"
      },
      {
        "system" : "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-medicationrequest-route-raw-code",
        "code" : "PO",
        "display" : "By mouth"
      }],
      "text" : "Oral route"
    },
    "doseAndRate" : [{
      "doseQuantity" : {
        "value" : 1,
        "unit" : "tablet",
        "code" : "1"
      }
    }]
  }],
  "dispenseRequest" : {
    "validityPeriod" : {
      "start" : "2025-04-08",
      "end" : "2026-04-08"
    },
    "numberOfRepeatsAllowed" : 2,
    "quantity" : {
      "value" : 90,
      "unit" : "tablets"
    },
    "expectedSupplyDuration" : {
      "value" : 90,
      "unit" : "days",
      "system" : "http://unitsofmeasure.org",
      "code" : "d"
    }
  }
}