FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/cyehr-sd-druguse

Packageehealth4u.package
Resource TypeStructureDefinition
Idcyehr-sd-druguse
FHIR VersionR4
Sourcehttps://simplifier.net/resolve?scope=ehealth4u.package@1.0.0&canonical=http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-druguse
URLhttp://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-druguse
Statusdraft
Date2022-05-20
NameCYEHRSDDrugUse
TitleCyprus EHR Drug Use profile
TypeObservation
Kindresource

Resources that use this resource

StructureDefinition
cyehr-sd-visitsummary-r4Cyprus EHR Visit Summary profile

Resources that this resource uses

StructureDefinition
CodeableConcept-uv-ipsCodeable Concept (IPS)
cyehr-sd-socialhistoryCyprus EHR Social History profile
ValueSet
cyehr-vs-ehdsirouteofadministrationCyprus EHR Value Set: eHDSI Route of Administration
cyehr-vs-ehdsiunitCyprus EHR Value Set: eHDSI Unit
cyehr-vs-drugormedicationtypeCyprus EHR Value Set: Drug Or Medication Type
cyehr-vs-drugusestatusCyprus EHR Value Set: Drug Use Status

Narrative

No narrative content found in resource


Source

{
  "resourceType": "StructureDefinition",
  "id": "cyehr-sd-druguse",
  "url": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-druguse",
  "name": "CYEHRSDDrugUse",
  "title": "Cyprus EHR Drug Use profile",
  "status": "draft",
  "date": "2022-05-20",
  "publisher": "eHealth4U",
  "contact": [
    {
      "name": "eHealth Lab (University of Cyprus)",
      "telecom": [
        {
          "system": "email",
          "value": "ehealthl@ucy.ac.cy",
          "use": "work"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-socialhistory",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "constraint": [
          {
            "key": "cyehr-druguse-1",
            "severity": "error",
            "human": "If value is \"Does not misuse drugs\" or \"Has never misused drugs\" then the amount shall not be recorded.",
            "expression": "Observation.valueCodeableConcept.coding.where(code='228367002' or code='228368007').exists() implies Observation.component.code.coding.where(code='105590001' or code='260911001' or code='410675002').exists().not()"
          }
        ]
      },
      {
        "id": "Observation.meta",
        "path": "Observation.meta"
      },
      {
        "id": "Observation.meta.profile",
        "path": "Observation.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Observation.meta.profile:CyprusEHRProfile",
        "path": "Observation.meta.profile",
        "sliceName": "CyprusEHRProfile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://ig.ehealth4u.eu/fhir/StructureDefinition/cyehr-sd-druguse"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\nCyprusEHR: display: \"Finding relating to drug misuse behavior\"",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "228366006"
            }
          ]
        }
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "min": 1
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-drugusestatus"
        }
      },
      {
        "id": "Observation.value[x].coding.system",
        "path": "Observation.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Observation.value[x].coding.code",
        "path": "Observation.value[x].coding.code",
        "min": 1
      },
      {
        "id": "Observation.value[x].coding.display",
        "path": "Observation.value[x].coding.display",
        "min": 1
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "code"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Observation.component:drugOrMedicationType",
        "path": "Observation.component",
        "sliceName": "drugOrMedicationType",
        "max": "1"
      },
      {
        "id": "Observation.component:drugOrMedicationType.code",
        "path": "Observation.component.code",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\nCyprusEHR: display: \"Substance\"",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "105590001"
            }
          ]
        }
      },
      {
        "id": "Observation.component:drugOrMedicationType.value[x]",
        "path": "Observation.component.value[x]",
        "short": "DrugOrMedicationType",
        "definition": "Type of drug used by the patient.",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-drugormedicationtype"
        }
      },
      {
        "id": "Observation.component:drugOrMedicationType.value[x].coding.system",
        "path": "Observation.component.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:drugOrMedicationType.value[x].coding.code",
        "path": "Observation.component.value[x].coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:drugOrMedicationType.value[x].coding.display",
        "path": "Observation.component.value[x].coding.display",
        "min": 1
      },
      {
        "id": "Observation.component:dailyDosage",
        "path": "Observation.component",
        "sliceName": "dailyDosage",
        "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.\r\n\r\nCyprusEHR: We are currently recording the dosage in \"grams per day\" but in the future we need to allow entries into \"grams per month\" and \"grams per year\". The \"grams per month\" and \"grams per year\" values will be automatically converted into \"per day\" dosage.",
        "max": "1"
      },
      {
        "id": "Observation.component:dailyDosage.code",
        "path": "Observation.component.code",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\nCyprusEHR: display: \"Dosage\"",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "260911001"
            }
          ]
        }
      },
      {
        "id": "Observation.component:dailyDosage.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "patternQuantity": {
          "unit": "g/d",
          "system": "http://unitsofmeasure.org",
          "code": "g/d"
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsiunit"
        }
      },
      {
        "id": "Observation.component:dailyDosage.value[x].value",
        "path": "Observation.component.value[x].value",
        "min": 1
      },
      {
        "id": "Observation.component:dailyDosage.value[x].unit",
        "path": "Observation.component.value[x].unit",
        "min": 1
      },
      {
        "id": "Observation.component:dailyDosage.value[x].system",
        "path": "Observation.component.value[x].system",
        "min": 1
      },
      {
        "id": "Observation.component:dailyDosage.value[x].code",
        "path": "Observation.component.value[x].code",
        "min": 1
      },
      {
        "id": "Observation.component:routeOfAdministration",
        "path": "Observation.component",
        "sliceName": "routeOfAdministration"
      },
      {
        "id": "Observation.component:routeOfAdministration.code",
        "path": "Observation.component.code",
        "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.\r\n\r\nCyprusEHR: display: \"Route of administration\"",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "410675002"
            }
          ]
        }
      },
      {
        "id": "Observation.component:routeOfAdministration.value[x]",
        "path": "Observation.component.value[x]",
        "min": 1,
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://hl7.org/fhir/uv/ips/StructureDefinition/CodeableConcept-uv-ips"
            ]
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://ig.ehealth4u.eu/fhir/ValueSet/cyehr-vs-ehdsirouteofadministration"
        }
      },
      {
        "id": "Observation.component:routeOfAdministration.value[x].coding",
        "path": "Observation.component.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.component:routeOfAdministration.value[x].coding.system",
        "path": "Observation.component.value[x].coding.system",
        "min": 1
      },
      {
        "id": "Observation.component:routeOfAdministration.value[x].coding.code",
        "path": "Observation.component.value[x].coding.code",
        "min": 1
      },
      {
        "id": "Observation.component:routeOfAdministration.value[x].coding.display",
        "path": "Observation.component.value[x].coding.display",
        "min": 1
      }
    ]
  }
}