ClinicalConsultationModel
type: StructureDefinition
node role: treeRoot
id:
  v: ClinicalConsultationModel
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition ClinicalConsultationModel Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ClinicalConsultationModel 0..* Base KPS.B Clinical Consultation #xD; allergy 0..* BackboneElement Documented allergies or intolerances #xD; allergen 1..1 string Substance or agent triggering the reaction Binding: SubstanceCode (required) #xD; propensityType 1..1 code Allergy, intolerance, or unknown Binding: Allergy Type (required) #xD; description 0..1 string Text description of the allergy or intolerance #xD; severity 0..1 code Severity of the clinical manifestation of the allergic reaction. Binding: Allergy Severity (required) #xD; criticality 0..1 code Risk of future life-threatening adverse reactions #xD; onsetDate 0..1 date Date the allergy was observed #xD; onsetAge 0..1 Age Age at onset of the allergy #xD; endDate 0..1 date Date of resolution of the allergy #xD; allergyStatus 1..1 code Current status of the allergy Binding: Allergy Clinical Status (required) #xD; allergyCertainty 0..1 code Certainty about the reaction's presence #xD; medicalAlert 0..* BackboneElement Medical alert information #xD; description 1..1 string Description of the alert #xD; alertCode 0..1 code Priority level #xD; status 0..1 code Alert status (active/inactive/etc) #xD; resolvedProblem 0..* BackboneElement Past resolved/closed/inactive problems #xD; description 1..1 string Problem or diagnosis #xD; onsetDate 0..1 date Date of problem onset #xD; endDate 0..1 date Resolution date #xD; resolutionCircumstances 0..1 string How the problem was resolved #xD; medicalHistory 0..1 string Narrative or synthesized summary of the client’s medical background #xD; currentProblem 0..* BackboneElement Current diagnoses and health conditions #xD; condition 1..1 string Problem or diagnosis #xD; clinicalStatus 0..1 code Clinical state (active, recurrence, relapse) #xD; verificationStatus 0..1 code Certainty of diagnosis (con…
url:
  v: https://fhir.dha.go.ke/kps/StructureDefinition/ClinicalConsultationModel
  l: ClinicalConsultationModel
version:
  v: 0.1.0
name:
  v: ClinicalConsultationModel
title:
  v: KPS.B Clinical Consultation
status:
  v: draft
date:
  v: 2026-05-11T04:58:58+00:00
publisher:
  v: Digital Health Agency of Kenya
contact:
  name:
    v: Digital Health Agency of Kenya
  telecom:
    system:
      v: url
    value:
      v: https://www.dha.go.ke
  telecom:
    system:
      v: email
contact:
  name:
    v: Digital Health Agency of Kenya – Interoperability Team
  telecom:
    system:
      v: email
    use:
      v: work
  telecom:
    system:
      v: url
    value:
      v: https://www.dha.go.ke
    use:
      v: work
description:
  v: Logical model for documenting clinical consultation data under the Kenya Patient Summary (KPS.B) standard.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: KE
    display:
      v: Kenya
copyright:
  v: Copyright © 2024+ Digital Health Agency of Kenya. This content is licensed under Creative Commons Zero v1.0 Universal (CC0 1.0). No rights reserved.
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: https://fhir.dha.go.ke/kps/StructureDefinition/ClinicalConsultationModel
  l: ClinicalConsultationModel
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: ClinicalConsultationModel
    path:
      v: ClinicalConsultationModel
    short:
      v: KPS.B Clinical Consultation
    definition:
      v: Logical model for documenting clinical consultation data under the Kenya Patient Summary (KPS.B) standard.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: ClinicalConsultationModel.allergy
    path:
      v: ClinicalConsultationModel.allergy
    short:
      v: Documented allergies or intolerances
    definition:
      v: Documented allergies or intolerances
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: ClinicalConsultationModel.allergy
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: BackboneElement
        l: BackboneElement
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        l: Element
  element:
    id:
      v: ClinicalConsultationModel.allergy.id
    path:
      v: ClinicalConsultationModel.allergy.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: Url
      code:
        v: http://hl7.org/fhirpath/System.String
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: ClinicalConsultationModel.allergy.extension
    path:
      v: ClinicalConsultationModel.allergy.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: 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:
      v: 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:
      v: extensions
    alias:
      v: user content
    min:
      v: 0

Url
v: string
l: string

v: value

v: url

v: *

path:
  v: Element.extension
min:
  v: 0
max:
  v: *

code:
  v: Extension
  l: Extension

key:
  v: ele-1
severity:
  v: error
human:
  v: All FHIR elements must have a @value or children
expression:
  v: hasValue() or (children().count() > id.count())
xpath:
  v: @value|f:*|h:div
source:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element

key:
  v: ext-1
severity:
  v: error
human:
  v: Must have either extensions or value[x], not both
expression:
  v: extension.exists() != value.exists()
xpath:
  v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
source:
  v: http://hl7.org/fhir/StructureDefinition/Extension
  l: Extension

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: ClinicalConsultationModel.allergy.modifierExtension
path:
  v: ClinicalConsultationModel.allergy.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.allergy.allergen
path:
  v: ClinicalConsultationModel.allergy.allergen
code:
  code:
    v: KPS.B.DE.1
short:
  v: Substance or agent triggering the reaction
definition:
  v: Substance or agent triggering the reaction
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.allergen
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/substance-code
    l: substance-code

id:
  v: ClinicalConsultationModel.allergy.propensityType
path:
  v: ClinicalConsultationModel.allergy.propensityType
code:
  code:
    v: KPS.B.DE.25
short:
  v: Allergy, intolerance, or unknown
definition:
  v: Allergy, intolerance, or unknown
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.propensityType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  value set:
    v: https://example.org/fhir/ValueSet/allergy-type-vs
    l: allergy-type-vs

id:
  v: ClinicalConsultationModel.allergy.description
path:
  v: ClinicalConsultationModel.allergy.description
code:
  code:
    v: KPS.B.DE.29
short:
  v: Text description of the allergy or intolerance
definition:
  v: Text description of the allergy or intolerance
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.allergy.severity
path:
  v: ClinicalConsultationModel.allergy.severity
code:
  code:
    v: KPS.B.DE.66
short:
  v: Severity of the clinical manifestation of the allergic reaction.
definition:
  v: Severity of the clinical manifestation of the allergic reaction.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  value set:
    v: https://example.org/fhir/ValueSet/allergy-severity-vs
    l: allergy-severity-vs

id:
  v: ClinicalConsultationModel.allergy.criticality
path:
  v: ClinicalConsultationModel.allergy.criticality
code:
  code:
    v: KPS.B.DE.70
short:
  v: Risk of future life-threatening adverse reactions
definition:
  v: Risk of future life-threatening adverse reactions
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.criticality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.allergy.onsetDate
path:
  v: ClinicalConsultationModel.allergy.onsetDate
code:
  code:
    v: KPS.B.DE.71
short:
  v: Date the allergy was observed
definition:
  v: Date the allergy was observed
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.onsetDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.allergy.onsetAge
path:
  v: ClinicalConsultationModel.allergy.onsetAge
code:
  code:
    v: KPS.B.DE.72
short:
  v: Age at onset of the allergy
definition:
  v: Age at onset of the allergy
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.onsetAge
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Age
    l: Age

id:
  v: ClinicalConsultationModel.allergy.endDate
path:
  v: ClinicalConsultationModel.allergy.endDate
code:
  code:
    v: KPS.B.DE.73
short:
  v: Date of resolution of the allergy
definition:
  v: Date of resolution of the allergy
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.endDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.allergy.allergyStatus
path:
  v: ClinicalConsultationModel.allergy.allergyStatus
code:
  code:
    v: KPS.B.DE.74
short:
  v: Current status of the allergy
definition:
  v: Current status of the allergy
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.allergyStatus
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  value set:
    v: https://example.org/fhir/ValueSet/allergy-status-vs
    l: allergy-status-vs

id:
  v: ClinicalConsultationModel.allergy.allergyCertainty
path:
  v: ClinicalConsultationModel.allergy.allergyCertainty
code:
  code:
    v: KPS.B.DE.78
short:
  v: Certainty about the reaction's presence
definition:
  v: Certainty about the reaction's presence
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.allergy.allergyCertainty
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.medicalAlert
path:
  v: ClinicalConsultationModel.medicalAlert
short:
  v: Medical alert information
definition:
  v: Medical alert information
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.medicalAlert
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.medicalAlert.id
path:
  v: ClinicalConsultationModel.medicalAlert.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.medicalAlert.extension
path:
  v: ClinicalConsultationModel.medicalAlert.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.medicalAlert.modifierExtension
path:
  v: ClinicalConsultationModel.medicalAlert.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.medicalAlert.description
path:
  v: ClinicalConsultationModel.medicalAlert.description
code:
  code:
    v: KPS.B.DE.83
short:
  v: Description of the alert
definition:
  v: Description of the alert
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.medicalAlert.description
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.medicalAlert.alertCode
path:
  v: ClinicalConsultationModel.medicalAlert.alertCode
code:
  code:
    v: KPS.B.DE.84
short:
  v: Priority level
definition:
  v: Priority level
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.medicalAlert.alertCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.medicalAlert.status
path:
  v: ClinicalConsultationModel.medicalAlert.status
code:
  code:
    v: KPS.B.DE.88
short:
  v: Alert status (active/inactive/etc)
definition:
  v: Alert status (active/inactive/etc)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.medicalAlert.status
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.resolvedProblem
path:
  v: ClinicalConsultationModel.resolvedProblem
short:
  v: Past resolved/closed/inactive problems
definition:
  v: Past resolved/closed/inactive problems
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.resolvedProblem
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.resolvedProblem.id
path:
  v: ClinicalConsultationModel.resolvedProblem.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.resolvedProblem.extension
path:
  v: ClinicalConsultationModel.resolvedProblem.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.resolvedProblem.modifierExtension
path:
  v: ClinicalConsultationModel.resolvedProblem.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.resolvedProblem.description
path:
  v: ClinicalConsultationModel.resolvedProblem.description
code:
  code:
    v: KPS.B.DE.93
short:
  v: Problem or diagnosis
definition:
  v: Problem or diagnosis
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.resolvedProblem.description
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.resolvedProblem.onsetDate
path:
  v: ClinicalConsultationModel.resolvedProblem.onsetDate
code:
  code:
    v: KPS.B.DE.94
short:
  v: Date of problem onset
definition:
  v: Date of problem onset
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.resolvedProblem.onsetDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.resolvedProblem.endDate
path:
  v: ClinicalConsultationModel.resolvedProblem.endDate
code:
  code:
    v: KPS.B.DE.96
short:
  v: Resolution date
definition:
  v: Resolution date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.resolvedProblem.endDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.resolvedProblem.resolutionCircumstances
path:
  v: ClinicalConsultationModel.resolvedProblem.resolutionCircumstances
code:
  code:
    v: KPS.B.DE.97
short:
  v: How the problem was resolved
definition:
  v: How the problem was resolved
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.resolvedProblem.resolutionCircumstances
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.medicalHistory
path:
  v: ClinicalConsultationModel.medicalHistory
code:
  code:
    v: KPS.B.DE.98
short:
  v: Narrative or synthesized summary of the client’s medical background
definition:
  v: Narrative or synthesized summary of the client’s medical background
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.medicalHistory
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem
path:
  v: ClinicalConsultationModel.currentProblem
short:
  v: Current diagnoses and health conditions
definition:
  v: Current diagnoses and health conditions
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.currentProblem
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.currentProblem.id
path:
  v: ClinicalConsultationModel.currentProblem.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.currentProblem.extension
path:
  v: ClinicalConsultationModel.currentProblem.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.currentProblem.modifierExtension
path:
  v: ClinicalConsultationModel.currentProblem.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.currentProblem.condition
path:
  v: ClinicalConsultationModel.currentProblem.condition
code:
  code:
    v: KPS.B.DE.99
short:
  v: Problem or diagnosis
definition:
  v: Problem or diagnosis
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.condition
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.clinicalStatus
path:
  v: ClinicalConsultationModel.currentProblem.clinicalStatus
code:
  code:
    v: KPS.B.DE.102
short:
  v: Clinical state (active, recurrence, relapse)
definition:
  v: Clinical state (active, recurrence, relapse)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.clinicalStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.verificationStatus
path:
  v: ClinicalConsultationModel.currentProblem.verificationStatus
code:
  code:
    v: KPS.B.DE.106
short:
  v: Certainty of diagnosis (confirmed, differential)
definition:
  v: Certainty of diagnosis (confirmed, differential)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.verificationStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.conditionCategory
path:
  v: ClinicalConsultationModel.currentProblem.conditionCategory
code:
  code:
    v: KPS.B.DE.110
short:
  v: Problem list or encounter diagnosis
definition:
  v: Problem list or encounter diagnosis
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.conditionCategory
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.conditionEncounter
path:
  v: ClinicalConsultationModel.currentProblem.conditionEncounter
code:
  code:
    v: KPS.B.DE.111
short:
  v: Encounter when the condition was first recorded
definition:
  v: Encounter when the condition was first recorded
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.conditionEncounter
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.severity
path:
  v: ClinicalConsultationModel.currentProblem.severity
code:
  code:
    v: KPS.B.DE.113
short:
  v: Clinical severity
definition:
  v: Clinical severity
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.bodySite
path:
  v: ClinicalConsultationModel.currentProblem.bodySite
code:
  code:
    v: KPS.B.DE.117
short:
  v: Anatomical location
definition:
  v: Anatomical location
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.bodySite
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.onsetDate
path:
  v: ClinicalConsultationModel.currentProblem.onsetDate
code:
  code:
    v: KPS.B.DE.118
short:
  v: Date of onset
definition:
  v: Date of onset
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.onsetDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.currentProblem.onsetAge
path:
  v: ClinicalConsultationModel.currentProblem.onsetAge
code:
  code:
    v: KPS.B.DE.119
short:
  v: Age at onset
definition:
  v: Age at onset
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.onsetAge
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.assertionStatus
path:
  v: ClinicalConsultationModel.currentProblem.assertionStatus
code:
  code:
    v: KPS.B.DE.120
short:
  v: Assertion about diagnosis certainty
definition:
  v: Assertion about diagnosis certainty
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.currentProblem.assertionStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.socialHistory
path:
  v: ClinicalConsultationModel.socialHistory
short:
  v: Lifestyle factors or social determinants
definition:
  v: Lifestyle factors or social determinants
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.socialHistory
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.socialHistory.id
path:
  v: ClinicalConsultationModel.socialHistory.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.socialHistory.extension
path:
  v: ClinicalConsultationModel.socialHistory.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.socialHistory.modifierExtension
path:
  v: ClinicalConsultationModel.socialHistory.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.socialHistory.observation
path:
  v: ClinicalConsultationModel.socialHistory.observation
code:
  code:
    v: KPS.B.DE.121
short:
  v: Social history observation
definition:
  v: Social history observation
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.socialHistory.observation
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.socialHistory.referencePeriod
path:
  v: ClinicalConsultationModel.socialHistory.referencePeriod
code:
  code:
    v: KPS.B.DE.122
short:
  v: Time period of observation
definition:
  v: Time period of observation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.socialHistory.referencePeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.pregnancyStatus
path:
  v: ClinicalConsultationModel.pregnancyStatus
short:
  v: Current pregnancy status
definition:
  v: Current pregnancy status
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.pregnancyStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.pregnancyStatus.id
path:
  v: ClinicalConsultationModel.pregnancyStatus.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.pregnancyStatus.extension
path:
  v: ClinicalConsultationModel.pregnancyStatus.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.pregnancyStatus.modifierExtension
path:
  v: ClinicalConsultationModel.pregnancyStatus.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.pregnancyStatus.status
path:
  v: ClinicalConsultationModel.pregnancyStatus.status
code:
  code:
    v: KPS.B.DE.123
short:
  v: Pregnancy status
definition:
  v: Pregnancy status
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.pregnancyStatus.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.pregnancyStatus.observationDate
path:
  v: ClinicalConsultationModel.pregnancyStatus.observationDate
code:
  code:
    v: KPS.B.DE.127
short:
  v: Date of pregnancy observation
definition:
  v: Date of pregnancy observation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.pregnancyStatus.observationDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.pregnancyStatus.expectedDeliveryDate
path:
  v: ClinicalConsultationModel.pregnancyStatus.expectedDeliveryDate
code:
  code:
    v: KPS.B.DE.128
short:
  v: Estimated due date
definition:
  v: Estimated due date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.pregnancyStatus.expectedDeliveryDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.previousPregnancy
path:
  v: ClinicalConsultationModel.previousPregnancy
short:
  v: Previous pregnancy details
definition:
  v: Previous pregnancy details
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.previousPregnancy
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.previousPregnancy.id
path:
  v: ClinicalConsultationModel.previousPregnancy.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.previousPregnancy.extension
path:
  v: ClinicalConsultationModel.previousPregnancy.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.previousPregnancy.modifierExtension
path:
  v: ClinicalConsultationModel.previousPregnancy.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.previousPregnancy.status
path:
  v: ClinicalConsultationModel.previousPregnancy.status
code:
  code:
    v: KPS.B.DE.129
short:
  v: Has the client been pregnant before?
definition:
  v: Has the client been pregnant before?
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.previousPregnancy.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.previousPregnancy.outcome
path:
  v: ClinicalConsultationModel.previousPregnancy.outcome
code:
  code:
    v: KPS.B.DE.133
short:
  v: Pregnancy outcome
definition:
  v: Pregnancy outcome
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.previousPregnancy.outcome
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.previousPregnancy.outcomeDate
path:
  v: ClinicalConsultationModel.previousPregnancy.outcomeDate
code:
  code:
    v: KPS.B.DE.144
short:
  v: Date of pregnancy outcome
definition:
  v: Date of pregnancy outcome
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.previousPregnancy.outcomeDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.previousPregnancy.numberOfChildren
path:
  v: ClinicalConsultationModel.previousPregnancy.numberOfChildren
code:
  code:
    v: KPS.B.DE.145
short:
  v: Number of children/fetuses in the pregnancy
definition:
  v: Number of children/fetuses in the pregnancy
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.previousPregnancy.numberOfChildren
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: ClinicalConsultationModel.travelHistory
path:
  v: ClinicalConsultationModel.travelHistory
short:
  v: Client travel history
definition:
  v: Client travel history
min:
  v: 0
max:
  v: *
base:
  path:
    v: ClinicalConsultationModel.travelHistory
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: ClinicalConsultationModel.travelHistory.id
path:
  v: ClinicalConsultationModel.travelHistory.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.travelHistory.extension
path:
  v: ClinicalConsultationModel.travelHistory.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: ClinicalConsultationModel.travelHistory.modifierExtension
path:
  v: ClinicalConsultationModel.travelHistory.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: ClinicalConsultationModel.travelHistory.destination
path:
  v: ClinicalConsultationModel.travelHistory.destination
code:
  code:
    v: KPS.B.DE.146
short:
  v: Destination of travel
definition:
  v: Destination of travel
min:
  v: 1
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.travelHistory.destination
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.travelHistory.period
path:
  v: ClinicalConsultationModel.travelHistory.period
code:
  code:
    v: KPS.B.DE.147
short:
  v: Period of travel (entry and departure dates)
definition:
  v: Period of travel (entry and departure dates)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: ClinicalConsultationModel.travelHistory.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

element:
  id:
    v: ClinicalConsultationModel
  path:
    v: ClinicalConsultationModel
  short:
    v: KPS.B Clinical Consultation
  definition:
    v: Logical model for documenting clinical consultation data under the Kenya Patient Summary (KPS.B) standard.
element:
  id:
    v: ClinicalConsultationModel.allergy
  path:
    v: ClinicalConsultationModel.allergy
  short:
    v: Documented allergies or intolerances
  definition:
    v: Documented allergies or intolerances
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: ClinicalConsultationModel.allergy.allergen
  path:
    v: ClinicalConsultationModel.allergy.allergen
  code:
    code:
      v: KPS.B.DE.1
  short:
    v: Substance or agent triggering the reaction
  definition:
    v: Substance or agent triggering the reaction
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/ValueSet/substance-code
      l: substance-code
element:
  id:
    v: ClinicalConsultationModel.allergy.propensityType
  path:
    v: ClinicalConsultationModel.allergy.propensityType
  code:
    code:
      v: KPS.B.DE.25
  short:
    v: Allergy, intolerance, or unknown
  definition:
    v: Allergy, intolerance, or unknown
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  binding:
    strength:
      v: required
    value set:
      v: https://example.org/fhir/ValueSet/allergy-type-vs
      l: allergy-type-vs
element:
  id:
    v: ClinicalConsultationModel.allergy.description
  path:
    v: ClinicalConsultationModel.allergy.description
  code:
    code:
      v: KPS.B.DE.29
  short:
    v: Text description of the allergy or intolerance
  definition:
    v: Text description of the allergy or intolerance
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: ClinicalConsultationModel.allergy.severity
  path:
    v: ClinicalConsultationModel.allergy.severity
  code:
    code:
      v: KPS.B.DE.66
  short:
    v: Severity of the clinical manifestation of the allergic reaction.
  definition:
    v: Severity of the clinical manifestation of the allergic reaction.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  binding:
    strength:
      v: required
    value set:
      v: https://example.org/fhir/ValueSet/allergy-severity-vs
      l: allergy-severity-vs
element:
  id:
    v: ClinicalConsultationModel.allergy.criticality
  path:
    v: ClinicalConsultationModel.allergy.criticality
  code:
    code:
      v: KPS.B.DE.70
  short:
    v: Risk of future life-threatening adverse reactions
  definition:
    v: Risk of future life-threatening adverse reactions
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: code
      l: code
element:
  id:
    v: ClinicalConsultationModel.allergy.onsetDate
  path:
    v: ClinicalConsultationModel.allergy.onsetDate
  code:
    code:
      v: KPS.B.DE.71
  short:
    v: Date the allergy was observed
  definition:
    v: Date the allergy was observed
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: date
      l: date
element:
  id:
    v: ClinicalConsultationModel.allergy.onsetAge
  path:
    v: ClinicalConsultationModel.allergy.onsetAge
  code:
    code:
      v: KPS.B.DE.72
  short:
    v: Age at onset of the allergy
  definition:
    v: Age at onset of the allergy
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Age
      l: Age
element:
  id:
    v: ClinicalConsultationModel.allergy.endDate
  path:
    v: ClinicalConsultationModel.allergy.endDate
  code:
    code:
      v: KPS.B.DE.73
  short:
    v: Date of resolution of the allergy
  definition:
    v: Date of resolution of the allergy
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: date
      l: date

id:
  v: ClinicalConsultationModel.allergy.allergyStatus
path:
  v: ClinicalConsultationModel.allergy.allergyStatus
code:
  code:
    v: KPS.B.DE.74
short:
  v: Current status of the allergy
definition:
  v: Current status of the allergy
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  value set:
    v: https://example.org/fhir/ValueSet/allergy-status-vs
    l: allergy-status-vs

id:
  v: ClinicalConsultationModel.allergy.allergyCertainty
path:
  v: ClinicalConsultationModel.allergy.allergyCertainty
code:
  code:
    v: KPS.B.DE.78
short:
  v: Certainty about the reaction's presence
definition:
  v: Certainty about the reaction's presence
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.medicalAlert
path:
  v: ClinicalConsultationModel.medicalAlert
short:
  v: Medical alert information
definition:
  v: Medical alert information
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.medicalAlert.description
path:
  v: ClinicalConsultationModel.medicalAlert.description
code:
  code:
    v: KPS.B.DE.83
short:
  v: Description of the alert
definition:
  v: Description of the alert
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.medicalAlert.alertCode
path:
  v: ClinicalConsultationModel.medicalAlert.alertCode
code:
  code:
    v: KPS.B.DE.84
short:
  v: Priority level
definition:
  v: Priority level
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.medicalAlert.status
path:
  v: ClinicalConsultationModel.medicalAlert.status
code:
  code:
    v: KPS.B.DE.88
short:
  v: Alert status (active/inactive/etc)
definition:
  v: Alert status (active/inactive/etc)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.resolvedProblem
path:
  v: ClinicalConsultationModel.resolvedProblem
short:
  v: Past resolved/closed/inactive problems
definition:
  v: Past resolved/closed/inactive problems
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.resolvedProblem.description
path:
  v: ClinicalConsultationModel.resolvedProblem.description
code:
  code:
    v: KPS.B.DE.93
short:
  v: Problem or diagnosis
definition:
  v: Problem or diagnosis
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.resolvedProblem.onsetDate
path:
  v: ClinicalConsultationModel.resolvedProblem.onsetDate
code:
  code:
    v: KPS.B.DE.94
short:
  v: Date of problem onset
definition:
  v: Date of problem onset
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.resolvedProblem.endDate
path:
  v: ClinicalConsultationModel.resolvedProblem.endDate
code:
  code:
    v: KPS.B.DE.96
short:
  v: Resolution date
definition:
  v: Resolution date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.resolvedProblem.resolutionCircumstances
path:
  v: ClinicalConsultationModel.resolvedProblem.resolutionCircumstances
code:
  code:
    v: KPS.B.DE.97
short:
  v: How the problem was resolved
definition:
  v: How the problem was resolved
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.medicalHistory
path:
  v: ClinicalConsultationModel.medicalHistory
code:
  code:
    v: KPS.B.DE.98
short:
  v: Narrative or synthesized summary of the client’s medical background
definition:
  v: Narrative or synthesized summary of the client’s medical background
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem
path:
  v: ClinicalConsultationModel.currentProblem
short:
  v: Current diagnoses and health conditions
definition:
  v: Current diagnoses and health conditions
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.currentProblem.condition
path:
  v: ClinicalConsultationModel.currentProblem.condition
code:
  code:
    v: KPS.B.DE.99
short:
  v: Problem or diagnosis
definition:
  v: Problem or diagnosis
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.clinicalStatus
path:
  v: ClinicalConsultationModel.currentProblem.clinicalStatus
code:
  code:
    v: KPS.B.DE.102
short:
  v: Clinical state (active, recurrence, relapse)
definition:
  v: Clinical state (active, recurrence, relapse)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.verificationStatus
path:
  v: ClinicalConsultationModel.currentProblem.verificationStatus
code:
  code:
    v: KPS.B.DE.106
short:
  v: Certainty of diagnosis (confirmed, differential)
definition:
  v: Certainty of diagnosis (confirmed, differential)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.conditionCategory
path:
  v: ClinicalConsultationModel.currentProblem.conditionCategory
code:
  code:
    v: KPS.B.DE.110
short:
  v: Problem list or encounter diagnosis
definition:
  v: Problem list or encounter diagnosis
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.conditionEncounter
path:
  v: ClinicalConsultationModel.currentProblem.conditionEncounter
code:
  code:
    v: KPS.B.DE.111
short:
  v: Encounter when the condition was first recorded
definition:
  v: Encounter when the condition was first recorded
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.severity
path:
  v: ClinicalConsultationModel.currentProblem.severity
code:
  code:
    v: KPS.B.DE.113
short:
  v: Clinical severity
definition:
  v: Clinical severity
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.currentProblem.bodySite
path:
  v: ClinicalConsultationModel.currentProblem.bodySite
code:
  code:
    v: KPS.B.DE.117
short:
  v: Anatomical location
definition:
  v: Anatomical location
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.onsetDate
path:
  v: ClinicalConsultationModel.currentProblem.onsetDate
code:
  code:
    v: KPS.B.DE.118
short:
  v: Date of onset
definition:
  v: Date of onset
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.currentProblem.onsetAge
path:
  v: ClinicalConsultationModel.currentProblem.onsetAge
code:
  code:
    v: KPS.B.DE.119
short:
  v: Age at onset
definition:
  v: Age at onset
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.currentProblem.assertionStatus
path:
  v: ClinicalConsultationModel.currentProblem.assertionStatus
code:
  code:
    v: KPS.B.DE.120
short:
  v: Assertion about diagnosis certainty
definition:
  v: Assertion about diagnosis certainty
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.socialHistory
path:
  v: ClinicalConsultationModel.socialHistory
short:
  v: Lifestyle factors or social determinants
definition:
  v: Lifestyle factors or social determinants
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.socialHistory.observation
path:
  v: ClinicalConsultationModel.socialHistory.observation
code:
  code:
    v: KPS.B.DE.121
short:
  v: Social history observation
definition:
  v: Social history observation
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.socialHistory.referencePeriod
path:
  v: ClinicalConsultationModel.socialHistory.referencePeriod
code:
  code:
    v: KPS.B.DE.122
short:
  v: Time period of observation
definition:
  v: Time period of observation
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.pregnancyStatus
path:
  v: ClinicalConsultationModel.pregnancyStatus
short:
  v: Current pregnancy status
definition:
  v: Current pregnancy status
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.pregnancyStatus.status
path:
  v: ClinicalConsultationModel.pregnancyStatus.status
code:
  code:
    v: KPS.B.DE.123
short:
  v: Pregnancy status
definition:
  v: Pregnancy status
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.pregnancyStatus.observationDate
path:
  v: ClinicalConsultationModel.pregnancyStatus.observationDate
code:
  code:
    v: KPS.B.DE.127
short:
  v: Date of pregnancy observation
definition:
  v: Date of pregnancy observation
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.pregnancyStatus.expectedDeliveryDate
path:
  v: ClinicalConsultationModel.pregnancyStatus.expectedDeliveryDate
code:
  code:
    v: KPS.B.DE.128
short:
  v: Estimated due date
definition:
  v: Estimated due date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.previousPregnancy
path:
  v: ClinicalConsultationModel.previousPregnancy
short:
  v: Previous pregnancy details
definition:
  v: Previous pregnancy details
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.previousPregnancy.status
path:
  v: ClinicalConsultationModel.previousPregnancy.status
code:
  code:
    v: KPS.B.DE.129
short:
  v: Has the client been pregnant before?
definition:
  v: Has the client been pregnant before?
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.previousPregnancy.outcome
path:
  v: ClinicalConsultationModel.previousPregnancy.outcome
code:
  code:
    v: KPS.B.DE.133
short:
  v: Pregnancy outcome
definition:
  v: Pregnancy outcome
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: ClinicalConsultationModel.previousPregnancy.outcomeDate
path:
  v: ClinicalConsultationModel.previousPregnancy.outcomeDate
code:
  code:
    v: KPS.B.DE.144
short:
  v: Date of pregnancy outcome
definition:
  v: Date of pregnancy outcome
min:
  v: 0
max:
  v: 1
type:
  code:
    v: date
    l: date

id:
  v: ClinicalConsultationModel.previousPregnancy.numberOfChildren
path:
  v: ClinicalConsultationModel.previousPregnancy.numberOfChildren
code:
  code:
    v: KPS.B.DE.145
short:
  v: Number of children/fetuses in the pregnancy
definition:
  v: Number of children/fetuses in the pregnancy
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: ClinicalConsultationModel.travelHistory
path:
  v: ClinicalConsultationModel.travelHistory
short:
  v: Client travel history
definition:
  v: Client travel history
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: ClinicalConsultationModel.travelHistory.destination
path:
  v: ClinicalConsultationModel.travelHistory.destination
code:
  code:
    v: KPS.B.DE.146
short:
  v: Destination of travel
definition:
  v: Destination of travel
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: ClinicalConsultationModel.travelHistory.period
path:
  v: ClinicalConsultationModel.travelHistory.period
code:
  code:
    v: KPS.B.DE.147
short:
  v: Period of travel (entry and departure dates)
definition:
  v: Period of travel (entry and departure dates)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string