{
  "resourceType": "StructureDefinition",
  "url": "https://www.cmp3vda-project.it/fhir/StructureDefinition/MedicationStatementCMP3",
  "version": "1.1",
  "name": "MedicationStatementCMP3",
  "status": "active",
  "date": "2023-06-15T13:00:53.5676245+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "max": "1"
      },
      {
        "id": "MedicationStatement.statusReason",
        "path": "MedicationStatement.statusReason",
        "max": "0"
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.cmp3vda-project.it/ValueSet/MedicationCMP3"
        }
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "max": "0"
      },
      {
        "id": "MedicationStatement.effective[x]",
        "path": "MedicationStatement.effective[x]",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "MedicationStatement.dateAsserted",
        "path": "MedicationStatement.dateAsserted",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.cmp3vda-project.it/ValueSet/MedicationStatementReasonsValueSetCMP3"
        }
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference",
        "max": "1"
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "max": "1"
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "max": "1"
      },
      {
        "id": "MedicationStatement.dosage.sequence",
        "path": "MedicationStatement.dosage.sequence",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.text",
        "path": "MedicationStatement.dosage.text",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction",
        "path": "MedicationStatement.dosage.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.patientInstruction",
        "path": "MedicationStatement.dosage.patientInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing",
        "path": "MedicationStatement.dosage.timing",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.event",
        "path": "MedicationStatement.dosage.timing.event",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat",
        "path": "MedicationStatement.dosage.timing.repeat",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "path": "MedicationStatement.dosage.timing.repeat.bounds[x]",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.count",
        "path": "MedicationStatement.dosage.timing.repeat.count",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.countMax",
        "path": "MedicationStatement.dosage.timing.repeat.countMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.durationMax",
        "path": "MedicationStatement.dosage.timing.repeat.durationMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.durationUnit",
        "path": "MedicationStatement.dosage.timing.repeat.durationUnit",
        "fixedCode": "d"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.frequency",
        "path": "MedicationStatement.dosage.timing.repeat.frequency",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.frequencyMax",
        "path": "MedicationStatement.dosage.timing.repeat.frequencyMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.period",
        "path": "MedicationStatement.dosage.timing.repeat.period",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.periodMax",
        "path": "MedicationStatement.dosage.timing.repeat.periodMax",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.periodUnit",
        "path": "MedicationStatement.dosage.timing.repeat.periodUnit",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.dayOfWeek",
        "path": "MedicationStatement.dosage.timing.repeat.dayOfWeek",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.timeOfDay",
        "path": "MedicationStatement.dosage.timing.repeat.timeOfDay",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.when",
        "path": "MedicationStatement.dosage.timing.repeat.when",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.repeat.offset",
        "path": "MedicationStatement.dosage.timing.repeat.offset",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.timing.code",
        "path": "MedicationStatement.dosage.timing.code",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.asNeeded[x]",
        "path": "MedicationStatement.dosage.asNeeded[x]",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.site",
        "path": "MedicationStatement.dosage.site",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.route",
        "path": "MedicationStatement.dosage.route",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.cmp3vda-project.it/ValueSet/MedicationRoutesValueSet"
        }
      },
      {
        "id": "MedicationStatement.dosage.method",
        "path": "MedicationStatement.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.type",
        "path": "MedicationStatement.dosage.doseAndRate.type",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "type": [
          {
            "code": "Ratio"
          },
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerPeriod",
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "max": "0"
      }
    ]
  }
}