{
  "resourceType": "StructureDefinition",
  "url": "http://interopsante.org/fhir/StructureDefinition/FrCurrentMedicationMedicationStatement",
  "version": "0.2.0",
  "name": "FrCurrentMedicationMedicationStatement",
  "status": "draft",
  "date": "2021-06-24",
  "publisher": "InterOp'Santé - FRANCE",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir@interopsante.org"
        }
      ]
    }
  ],
  "description": "Profil de la ressource *MedicationStatement* du traitement médicamenteux courant.\r\nCurrent Medication MedicationStatement resource profile",
  "purpose": "Ce profil est utilisé pour les ressources *MedicationStatement* figurant dans le traitement médicamenteux courant. Chaque ressource *MedicationStatement* y représente une ligne de médicament du traitement médicamenteux courant.",
  "copyright": "InterOp'Santé 2021",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement",
        "path": "MedicationStatement",
        "short": "Ligne de traitement médicamenteux du Traitement Médicamenteux Courant",
        "definition": "Ligne de traitement médicamenteux du Traitement Médicamenteux Courant hospitalier.",
        "comment": "Les règles natives HL7-FHIR sont applicables et à respecter. When interpreting a medicationStatement, the value of the status and NotTaken needed to be considered:\r1. MedicationStatement.status + MedicationStatement.wasNotTaken\r2. Status=Active + NotTaken=T = Not currently taking\r3. Status=Completed + NotTaken=T = Not taken in the past\r4. Status=Intended + NotTaken=T = No intention of taking\r5. Status=Active + NotTaken=F = Taking, but not as prescribed\r6. Status=Active + NotTaken=F = Taking\r7. Status=Intended +NotTaken= F = Will be taking (not started)\r8. Status=Completed + NotTaken=F = Taken in past\r9. Status=In Error + NotTaken=N/A = In Error.",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.implicitRules",
        "path": "MedicationStatement.implicitRules",
        "max": "0"
      },
      {
        "id": "MedicationStatement.language",
        "path": "MedicationStatement.language",
        "defaultValueCode": "fr-FR"
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "short": "Le médicament constitutif de cette ligne",
        "definition": "Identifie le médicament constitutif de cette ligne. C'est le lien vers une ressource *Medication* qui décrit ce médicament.",
        "comment": "Même si le médicament n'est composé que d'une spécialité (par exemple un comprimé), il est défini par référence à une ressource *Medication* qui décrira sa composition d'une seule spécialité",
        "requirements": "traitement univoque de l'élément *medication[x]*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrMedication"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].reference",
        "path": "MedicationStatement.medication[x].reference",
        "requirements": "Identification du *médicament* uniquement par référence à une ressource *Medication* profilée *fr_medication*\\.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x].type",
        "path": "MedicationStatement.medication[x].type",
        "fixedUri": "Medication"
      },
      {
        "id": "MedicationStatement.medication[x].identifier",
        "path": "MedicationStatement.medication[x].identifier",
        "requirements": "Identification du *médicament* uniquement par référence à une ressource *Medication* profilée *fr-medication*\\.",
        "max": "0",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "short": "Le patient qui prend cette ligne de traitement médicamenteux",
        "definition": "Le patient qui prend cette ligne de traitement médicamenteux. Le Traitement Médicamenteux Courant ne concerne qu'un patient. Toutes ses lignes doivent référencer le même patient.",
        "comment": "Obligatoire dans la ressource FHIR *MedicationStatement* originelle, donc DOIT ABSOLUMENT être identique à la personne à laquelle se rapporte ce document (voir element *subject* de la ressource parente *Composition*\\).",
        "requirements": "Le Traitement Médicamenteux Courant ne concerne qu'un seul et même patient. Toutes ses lignes doivent référencer le même patient, celui référencé par l'element *subject* de la ressource parente *Composition*\\.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://interopsante.org/fhir/StructureDefinition/FrPatient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.subject.type",
        "path": "MedicationStatement.subject.type",
        "fixedUri": "Patient"
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate",
        "path": "MedicationStatement.dosage.doseAndRate",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "path": "MedicationStatement.dosage.doseAndRate.dose[x]",
        "short": "Precise amount of medication per dose",
        "definition": "Amount of medication per dose. No use of element 'comparator' in the simpleQuantity definitions.",
        "type": [
          {
            "code": "Range",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRangeUcum"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "path": "MedicationStatement.dosage.doseAndRate.rate[x]",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          },
          {
            "code": "Range",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRangeUcum"
            ]
          },
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerPeriod",
        "path": "MedicationStatement.dosage.maxDosePerPeriod",
        "type": [
          {
            "code": "Ratio",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrRatioUcum"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://interopsante.org/fhir/StructureDefinition/FrSimpleQuantityUcum"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}