{
  "resourceType": "StructureDefinition",
  "id": "ca-qc-endo-profile-EndoCurrentMedicationStatement-v0.9.0",
  "url": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoCurrentMedicationStatement",
  "version": "0.9.0",
  "name": "EndoCurrentMedicationStatement",
  "status": "active",
  "date": "2025-05-14T10:00:00+00:00",
  "description": "Ressource médicament\n\nChangements à la version 0.9.0:\n\n- statut de la ressource (draft → active)\n- meta.source est obligatoire",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.meta",
        "path": "MedicationStatement.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.source",
        "path": "MedicationStatement.meta.source",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.profile",
        "path": "MedicationStatement.meta.profile",
        "comment": "Projet endoscopie, utiliser : https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoCurrentMedicationStatement\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.security",
        "path": "MedicationStatement.meta.security",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.security.system",
        "path": "MedicationStatement.meta.security.system",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.security.code",
        "path": "MedicationStatement.meta.security.code",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.security.display",
        "path": "MedicationStatement.meta.security.display",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.tag",
        "path": "MedicationStatement.meta.tag",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.tag.system",
        "path": "MedicationStatement.meta.tag.system",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.tag.code",
        "path": "MedicationStatement.meta.tag.code",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.meta.tag.display",
        "path": "MedicationStatement.meta.tag.display",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.use",
        "path": "MedicationStatement.identifier.use",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.type",
        "path": "MedicationStatement.identifier.type",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.type.coding",
        "path": "MedicationStatement.identifier.type.coding",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.type.coding.system",
        "path": "MedicationStatement.identifier.type.coding.system",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.type.coding.code",
        "path": "MedicationStatement.identifier.type.coding.code",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.type.coding.display",
        "path": "MedicationStatement.identifier.type.coding.display",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.system",
        "path": "MedicationStatement.identifier.system",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.identifier.value",
        "path": "MedicationStatement.identifier.value",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoProcedure"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].coding",
        "path": "MedicationStatement.medication[x].coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/MedicamentEndo"
        }
      },
      {
        "id": "MedicationStatement.medication[x].coding.system",
        "path": "MedicationStatement.medication[x].coding.system",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].coding.code",
        "path": "MedicationStatement.medication[x].coding.code",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].coding.display",
        "path": "MedicationStatement.medication[x].coding.display",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].text",
        "path": "MedicationStatement.medication[x].text",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/StructureDefinition/EndoPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.route",
        "path": "MedicationStatement.dosage.route",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.route.coding",
        "path": "MedicationStatement.dosage.route.coding",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/VoieAdministrationEndo",
          "description": "Voie d'administration des médicaments"
        }
      },
      {
        "id": "MedicationStatement.dosage.route.coding.code",
        "path": "MedicationStatement.dosage.route.coding.code",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.route.coding.display",
        "path": "MedicationStatement.dosage.route.coding.display",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate",
        "path": "MedicationStatement.dosage.doseAndRate",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].value",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].value",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].unit",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].unit",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].system",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x].code",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x].code",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSet": "https://extranet.ti.msss.rtss.qc.ca/FHIR/Endo/ValueSet/MedicationUniteMesureEndo"
        }
      }
    ]
  }
}