FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagecom.e-medlab.healthsense
Resource TypeStructureDefinition
IdStructureDefinition-tobacco-use-model.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/e-medlab/healthsense/StructureDefinition-tobacco-use-model.html
URLhttps://healthsense.e-medlab.com/StructureDefinition/tobacco-use-model
Version0.1.0
Statusdraft
Date2026-01-05T08:48:52+00:00
NameTobaccoUseModel
Typehttps://healthsense.e-medlab.com/StructureDefinition/tobacco-use-model
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

ValueSet
hs-tobacco-userTobacco user

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition tobacco-use-model

NameFlagsCard.TypeDescription & Constraintsdoco
.. tobacco-use-model 0..*ElementTobaccoUseModel

Elements defined in Ancestors:@id, extension
... patient 1..1Reference(Patient)Patient
... effectiveTime 1..1dateTimeEffective time
... value 1..1CodingThe actual coded result of observation.
Binding: Tobacco user (required)
... note 0..1stringComments about the observation

doco Documentation for this format

Source1

{
  "resourceType": "StructureDefinition",
  "id": "tobacco-use-model",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "https://healthsense.e-medlab.com/StructureDefinition/tobacco-use-model",
  "version": "0.1.0",
  "name": "TobaccoUseModel",
  "status": "draft",
  "date": "2026-01-05T08:48:52+00:00",
  "publisher": "Taltech",
  "contact": [
    {
      "name": "Taltech",
      "telecom": [
        {
          "system": "url",
          "value": "https://taltech.ee/en/emed-lab"
        }
      ]
    },
    {
      "name": "Departament of Health Technologies",
      "telecom": [
        {
          "system": "email",
          "value": "mailto:igor.bossenko@taltech.ee"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://healthsense.e-medlab.com/StructureDefinition/tobacco-use-model",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "4.0.1"
      }
    ],
    "element": [
      {
        "id": "tobacco-use-model",
        "path": "tobacco-use-model",
        "short": "TobaccoUseModel",
        "definition": "TobaccoUseModel",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "tobacco-use-model.id",
        "path": "tobacco-use-model.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "tobacco-use-model.extension",
        "path": "tobacco-use-model.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "tobacco-use-model.patient",
        "path": "tobacco-use-model.patient",
        "short": "Patient",
        "definition": "Subject of procedure.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "tobacco-use-model.patient",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "tobacco-use-model.effectiveTime",
        "path": "tobacco-use-model.effectiveTime",
        "short": "Effective time",
        "definition": "When the observation was measured.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "tobacco-use-model.effectiveTime",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "tobacco-use-model.value",
        "path": "tobacco-use-model.value",
        "short": "The actual coded result of observation.",
        "definition": "The actual coded result of observation.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "tobacco-use-model.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://healthsense.e-medlab.com/ValueSet/hs-tobacco-user"
        }
      },
      {
        "id": "tobacco-use-model.note",
        "path": "tobacco-use-model.note",
        "short": "Comments about the observation",
        "definition": "Comments about the observation or the results.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "tobacco-use-model.note",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "tobacco-use-model",
        "path": "tobacco-use-model",
        "short": "TobaccoUseModel",
        "definition": "TobaccoUseModel"
      },
      {
        "id": "tobacco-use-model.patient",
        "path": "tobacco-use-model.patient",
        "short": "Patient",
        "definition": "Subject of procedure.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "tobacco-use-model.effectiveTime",
        "path": "tobacco-use-model.effectiveTime",
        "short": "Effective time",
        "definition": "When the observation was measured.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "tobacco-use-model.value",
        "path": "tobacco-use-model.value",
        "short": "The actual coded result of observation.",
        "definition": "The actual coded result of observation.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://healthsense.e-medlab.com/ValueSet/hs-tobacco-user"
        }
      },
      {
        "id": "tobacco-use-model.note",
        "path": "tobacco-use-model.note",
        "short": "Comments about the observation",
        "definition": "Comments about the observation or the results.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}