{
  "resourceType": "MedicationRequest",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>Tamoxifeno 20 mg por vía oral una vez al día.</p></div>"
  },
  "identifier": [
    {
      "system": "https://f-slg.github.io/aprende-fhir/sid/receta",
      "value": "RX-2025-0207"
    }
  ],
  "status": "active",
  "intent": "order",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
          "code": "outpatient",
          "display": "Outpatient"
        }
      ]
    }
  ],
  "medicationCodeableConcept": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "373345002",
        "display": "Tamoxifen"
      }
    ],
    "text": "Tamoxifeno"
  },
  "subject": {
    "reference": "Patient/{{patientId}}",
    "display": "Luis Alberto Paredes Cevallos"
  },
  "authoredOn": "2025-10-15",
  "requester": {
    "reference": "Practitioner/{{practitionerId}}",
    "display": "Dra. Andrea Lucía Salazar Moreno"
  },
  "reasonReference": [
    {
      "reference": "Condition/{{conditionCancerId}}",
      "display": "Carcinoma ductal infiltrante de mama izquierda"
    }
  ],
  "dosageInstruction": [
    {
      "text": "20 mg por vía oral una vez al día, durante 5 años",
      "timing": {
        "repeat": {
          "frequency": 1,
          "period": 1,
          "periodUnit": "d",
          "boundsDuration": {
            "value": 5,
            "unit": "años",
            "system": "http://unitsofmeasure.org",
            "code": "a"
          }
        }
      },
      "route": {
        "coding": [
          {
            "system": "http://snomed.info/sct",
            "code": "26643006",
            "display": "Oral route"
          }
        ],
        "text": "Vía oral"
      },
      "doseAndRate": [
        {
          "doseQuantity": {
            "value": 20,
            "unit": "mg",
            "system": "http://unitsofmeasure.org",
            "code": "mg"
          }
        }
      ]
    }
  ],
  "dispenseRequest": {
    "numberOfRepeatsAllowed": 11,
    "quantity": {
      "value": 30,
      "unit": "comprimidos"
    },
    "expectedSupplyDuration": {
      "value": 30,
      "unit": "días",
      "system": "http://unitsofmeasure.org",
      "code": "d"
    }
  }
}
