PackagesCanonicalsLogsProblems
    Packages
    com.alextherapeutics.fhir.nicotine@1.0.1
    http://www.alextherapeutics.com/fhir/StructureDefinition/exported-nicotine-usage-treatment-data
description: A bulk export containing all data pertaining to a single patient being treated for nicotine usage
package_name: com.alextherapeutics.fhir.nicotine
derivation: constraint
name: ExportedNicotineUsageTreatmentData
type: Composition
elements:
  status:
    pattern: {type: Code, value: final}
    index: 0
  type:
    elements:
      text:
        pattern: {type: String, value: DiGA Data Export}
        index: 1
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-nicotine-using-patient']
    index: 2
  section:
    array: true
    min: 5
    index: 3
    slicing:
      rules: closed
      discriminator:
      - {path: section, type: value}
      min: 5
      slices:
        patientData:
          match: {section: null}
          schema:
            short: Data on the self-reported nicotine-using patient
            mustSupport: true
            _required: true
            index: 4
            elements:
              title:
                mustSupport: true
                pattern: {type: String, value: Self-reported nicotine-using patientdata}
                index: 5
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-nicotine-using-patient']
                index: 6
            required: [entry, title]
        selfReportedCondition:
          match: {section: null}
          schema:
            short: Data on the self-reported condition of nicotine usage
            mustSupport: true
            _required: true
            index: 7
            elements:
              title:
                mustSupport: true
                pattern: {type: String, value: Self-reported nicotine-usage condition}
                index: 8
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-nicotine-usage']
                index: 9
            required: [entry, title]
        nicotineUsageTreatmentPlan:
          match: {section: null}
          schema:
            short: The treatment plan for the self-reported nicotine usage
            mustSupport: true
            _required: true
            index: 10
            elements:
              title:
                mustSupport: true
                pattern: {type: String, value: Nicotine usage treatment plan}
                index: 11
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://www.alextherapeutics.com/fhir/StructureDefinition/nicotine-usage-treatment-plan']
                index: 12
            required: [title]
        questionnaires:
          match: {section: null}
          schema:
            short: Definitions for questionnaires during the nicotine usage treatment
            mustSupport: true
            _required: true
            index: 13
            elements:
              title:
                mustSupport: true
                pattern: {type: String, value: Questionnaire definitions}
                index: 14
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/Questionnaire', 'http://www.alextherapeutics.com/fhir/StructureDefinition/nicotine-treatment-questionnaire']
                index: 15
            required: [title]
        questionnaireResponses:
          match: {section: null}
          schema:
            short: Questionnaire responses by the patient during the nicotine treatment
            mustSupport: true
            _required: true
            index: 16
            elements:
              title:
                mustSupport: true
                pattern: {type: String, value: Questionnaire responses}
                index: 17
              entry:
                type: Reference
                refers: ['http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse', 'http://www.alextherapeutics.com/fhir/StructureDefinition/nicotine-treatment-questionnaire-response']
                index: 18
            required: [title]
package_version: 1.0.1
class: profile
kind: resource
url: http://www.alextherapeutics.com/fhir/StructureDefinition/exported-nicotine-usage-treatment-data
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 1.0.0
required: [subject]