ProfileFamilyMemberHistoryHCEU
type: StructureDefinition
node role: treeRoot
id:
  v: ProfileFamilyMemberHistoryHCEU
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition ProfileFamilyMemberHistoryHCEU Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> FamilyMemberHistory FamilyMemberHistory Slices for extension 1..1 Extension Extension Slice: Unordered, Open by value:url extension:genderIdentity 1..1 CodeableConcept Gender patient URL: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-GenderIdentity <a style="font-style: italic; font-style: italic" href="StructureDefinition-ProfileFamilyMemberHistoryHCEU-definitions.html#FamilyMemberHistory.identifier" title="Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server. ☛ El sistema de codificación es un campo opcional y en esta caso esta definido por los catálogos de los sistemas de atención clínica donde se crean los registros clínicos; se recomienda que dicho manejo sea controlado por las fuentes de forma tal que se pueda identificar de forma univoca cada registro de condición clínica asociada al paciente">Slices for identifier S 1..* Identifier External Id(s) for this record Slice: Unordered, Open by pattern:use identifier:HISdentifier 1..1 Identifier External Id(s) for this record use 1..1 code usual | official | temp | secondary | old (If known) Fixed Value: usual type 0..0 system 1..1 uri The namespace for the identifier value Example HIS uri: http://hospitalSystemInformation.example.org/FamilyMemberHistories/ <a href="StructureDefinition-ProfileFamilyMemberHistoryHCEU-definitions.html#FamilyMemberHistory.identifier:HISdentifier.value" title="The portion of the identifier typically relevant to the user and which is unique within the context of the system. A pesar de que se pueden asociar multiples identificadores canonicos al recurso, se recomienda tener un valor unico tipo GUID, OID o con llaves compuestas">value 1..1 st…
url:
  v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileFamilyMemberHistoryHCEU
version:
  v: 0.10.1
name:
  v: ProfileFamilyMemberHistoryHCEU
title:
  v: HCEU - Family Member History
status:
  v: draft
date:
  v: 2025-07-10T20:24:14-05:00
publisher:
  v: minsait - An Indra Company
contact:
  name:
    v: Secretaría de Salud de Bogotá
  telecom:
    system:
      v: url
    value:
      v: https://www.saludcapital.gov.co/
description:
  v: Recurso que permite registrar información del estado de salud de un familiar de un paciente
purpose:
  v: Recurso que permite registrar información del estado de salud de un familiar de un paciente
copyright:
  v: Secretaría de Salud de Bogotá
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
  name:
    v: Workflow Pattern
mapping:
  identity:
    v: v2
  uri:
    v: http://hl7.org/v2
  name:
    v: HL7 v2 Mapping
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/fivews
  name:
    v: FiveWs Pattern Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: FamilyMemberHistory
base definition:
  v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
  link: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
derivation:
  v: constraint
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: FamilyMemberHistory
    path:
      v: FamilyMemberHistory
    short:
      v: Information about patient's relatives, relevant for patient
    definition:
      v: Significant health conditions for a person related to the patient relevant in the context of care for the patient.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: FamilyMemberHistory
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
      expression:
        v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: dom-5
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a security label
      expression:
        v: contained.meta.security.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:security))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      extension:
        value: boolean
      extension:
        value: markdown
      key:
        v: dom-6
      severity:
        v: warning
      human:
        v: A resource should have narrative for robust management
      expression:
        v: text.`div`.exists()
      xpath:
        v: exists(f:text/h:div)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        link: http://hl7.org/fhir/StructureDefinition/DomainResource
    constraint:
      key:
        v: fhs-1
      severity:
        v: error
      human:
        v: Can have age[x] or born[x], but not both
      expression:
        v: age.empty() or born.empty()
      xpath:
        v: not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])
      source:
        v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
        link: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
    constraint:
      key:
        v: fhs-2
      severity:
        v: error
      human:
        v: Can only have estimatedAge if age[x] is present
      expression:
        v: age.exists() or estimatedAge.empty()
      xpath:
        v: exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))
      source:
        v: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory
        link: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory

boolean
v: true

markdown
v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.

v: false

v: false

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: workflow
map:
  v: Event

identity:
  v: v2
map:
  v: Not in scope for v2

identity:
  v: rim
map:
  v: Observation[classCode=OBS, moodCode=EVN]

id:
  v: FamilyMemberHistory.id
path:
  v: FamilyMemberHistory.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value: url
      v: id
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: true

id:
  v: FamilyMemberHistory.meta
path:
  v: FamilyMemberHistory.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: FamilyMemberHistory.implicitRules
path:
  v: FamilyMemberHistory.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation
is summary:
  v: true

id:
  v: FamilyMemberHistory.language
path:
  v: FamilyMemberHistory.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
    value: canonical
      v: http://hl7.org/fhir/ValueSet/all-languages
      link: http://hl7.org/fhir/ValueSet/all-languages
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Language
  strength:
    v: preferred
  description:
    v: A human language.
  value set:
    v: http://hl7.org/fhir/ValueSet/languages
    link: http://hl7.org/fhir/ValueSet/languages

id:
  v: FamilyMemberHistory.text
path:
  v: FamilyMemberHistory.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: FamilyMemberHistory.contained
path:
  v: FamilyMemberHistory.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: FamilyMemberHistory.extension
path:
  v: FamilyMemberHistory.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: FamilyMemberHistory.extension:genderIdentity
path:
  v: FamilyMemberHistory.extension
slice name:
  v: genderIdentity
short:
  v: Gender patient
definition:
  v: Gender with which the patient identifies.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
  profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-GenderIdentity
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-GenderIdentity
condition:
  v: ele-1
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false

id:
  v: FamilyMemberHistory.modifierExtension
path:
  v: FamilyMemberHistory.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: FamilyMemberHistory.identifier
path:
  v: FamilyMemberHistory.identifier
slicing:
  discriminator:
    type:
      v: pattern
    path:
      v: use
  rules:
    v: open
short:
  v: External Id(s) for this record
definition:
  v: Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server. ☛ El sistema de codificación es un campo opcional y en esta caso esta definido por los catálogos de los sistemas de atención clínica donde se crean los registros clínicos; se recomienda que dicho manejo sea controlado por las fuentes de forma tal que se pueda identificar de forma univoca cada registro de condición clínica asociada al paciente
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the family member history as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 1
max:
  v: *
base:
  path:
    v: FamilyMemberHistory.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: id

id:
  v: FamilyMemberHistory.identifier:HISdentifier
path:
  v: FamilyMemberHistory.identifier
slice name:
  v: HISdentifier
short:
  v: External Id(s) for this record
definition:
  v: Identificador del registro en el HIS origen
comment:
  v: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.
requirements:
  v: Allows identification of the family member history as it is known by various participating systems and in a way that remains consistent across servers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: rim
  map:
    v: id

id:
  v: FamilyMemberHistory.identifier:HISdentifier.id
path:
  v: FamilyMemberHistory.identifier.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
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.identifier:HISdentifier.extension
path:
  v: FamilyMemberHistory.identifier.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.identifier:HISdentifier.use
path:
  v: FamilyMemberHistory.identifier.use
short:
  v: usual | official | temp | secondary | old (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
fixed: code
  v: usual
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: FamilyMemberHistory.identifier:HISdentifier.type
path:
  v: FamilyMemberHistory.identifier.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: IdentifierType
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-type
    link: http://hl7.org/fhir/ValueSet/identifier-type
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: FamilyMemberHistory.identifier:HISdentifier.system
path:
  v: FamilyMemberHistory.identifier.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
example:
  label:
    v: General
  value: uri
    v: http://www.acme.com/identifiers/patient
example:
  label:
    v: HIS uri
  value: uri
    v: http://hospitalSystemInformation.example.org/FamilyMemberHistories/
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: FamilyMemberHistory.identifier:HISdentifier.value
path:
  v: FamilyMemberHistory.identifier.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system. A pesar de que se pueden asociar multiples identificadores canonicos al recurso, se recomienda tener un valor unico tipo GUID, OID o con llaves compuestas
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value: string
    v: 123456
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: FamilyMemberHistory.identifier:HISdentifier.period
path:
  v: FamilyMemberHistory.identifier.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: FamilyMemberHistory.identifier:HISdentifier.assigner
path:
  v: FamilyMemberHistory.identifier.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: Identifier.assigner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: FamilyMemberHistory.instantiatesCanonical
path:
  v: FamilyMemberHistory.instantiatesCanonical
short:
  v: Instantiates FHIR protocol or definition
definition:
  v: The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this FamilyMemberHistory.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.instantiatesCanonical
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PlanDefinition
    link: http://hl7.org/fhir/StructureDefinition/PlanDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire
    link: http://hl7.org/fhir/StructureDefinition/Questionnaire
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
    link: http://hl7.org/fhir/StructureDefinition/ActivityDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Measure
    link: http://hl7.org/fhir/StructureDefinition/Measure
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/OperationDefinition
    link: http://hl7.org/fhir/StructureDefinition/OperationDefinition
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.instantiatesCanonical
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: FamilyMemberHistory.instantiatesUri
path:
  v: FamilyMemberHistory.instantiatesUri
short:
  v: Instantiates external protocol or definition
definition:
  v: The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this FamilyMemberHistory.
comment:
  v: This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.instantiatesUri
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.instantiatesUri
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=DEFN].target

id:
  v: FamilyMemberHistory.status
path:
  v: FamilyMemberHistory.status
short:
  v: completed | partial
definition:
  v: A code specifying the status of the record of the family history of a specific family member. Solo se permiten los valores "completed", se tiene disponible toda la información clínica del familiar o en su defecto o una parte de la misma (valor "partial"). Los demas posibles NO son permitidos
comment:
  v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. Solo se permiten los valores "completed", se tiene disponible toda la información clínica del familiar o en su defecto o una parte de la misma (valor "partial"). Los demas posibles NO son permitidos
min:
  v: 1
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
example:
  label:
    v: ej
  value: code
    v: partial
example:
  label:
    v: ej2
  value: code
    v: completed
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FamilyHistoryStatus
  strength:
    v: required
  description:
    v: A code that identifies the status of the family history record.
  value set:
    v: http://hl7.org/fhir/ValueSet/history-status|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: workflow
  map:
    v: Event.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: FamilyMemberHistory.dataAbsentReason
path:
  v: FamilyMemberHistory.dataAbsentReason
short:
  v: subject-unknown | withheld | unable-to-obtain | deferred
definition:
  v: Describes why the family member's history is not available.
requirements:
  v: This is a separate element to allow it to have a distinct binding from reasonCode.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.dataAbsentReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FamilyHistoryAbsentReason
  strength:
    v: example
  description:
    v: Codes describing the reason why a family member's history is not available.
  value set:
    v: http://hl7.org/fhir/ValueSet/history-absent-reason
    link: http://hl7.org/fhir/ValueSet/history-absent-reason
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode

id:
  v: FamilyMemberHistory.patient
path:
  v: FamilyMemberHistory.patient
short:
  v: Patient history is about
definition:
  v: The person who this history concerns.
alias:
  v: Proband
min:
  v: 1
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.patient
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfilePatientHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfilePatientHCEU
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.subject
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject[x]
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=SBJ].role
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.subject

id:
  v: FamilyMemberHistory.date
path:
  v: FamilyMemberHistory.date
short:
  v: When history was recorded or last updated
definition:
  v: The date (and possibly time) when the family member history was recorded or last updated.
comment:
  v: This should be captured even if the same as the date on the List aggregating the full family history.
requirements:
  v: Allows determination of how current the summary is.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=AUT].time

id:
  v: FamilyMemberHistory.name
path:
  v: FamilyMemberHistory.name
short:
  v: The family member described
definition:
  v: This will either be a name or a description; e.g. "Aunt Susan", "my cousin with the red hair".
requirements:
  v: Allows greater ease in ensuring the same person is being talked about.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: name

id:
  v: FamilyMemberHistory.relationship
path:
  v: FamilyMemberHistory.relationship
short:
  v: Relationship to the subject
definition:
  v: The type of relationship this person has to the patient (father, mother, brother etc.).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.relationship
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
example:
  label:
    v: ej
  value: CodeableConcept
    coding:
      system:
        v: https://hl7.org/fhir/R4/v3/FamilyMember/vs.html
      code:
        v: BRO
      display:
        v: Brother
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FamilialRelationship
  strength:
    v: example
  description:
    v: The nature of the relationship between the patient and the related person being described in the family member history.
  value set:
    v: http://terminology.hl7.org/ValueSet/v3-FamilyMember
    link: http://terminology.hl7.org/ValueSet/v3-FamilyMember
mapping:
  identity:
    v: rim
  map:
    v: code

id:
  v: FamilyMemberHistory.sex
path:
  v: FamilyMemberHistory.sex
short:
  v: male | female | other | unknown
definition:
  v: The birth sex of the family member.
comment:
  v: This element should ideally reflect whether the individual is genetically male or female. However, as reported information based on the knowledge of the patient or reporting friend/relative, there may be situations where the reported sex might not be totally accurate. E.g. 'Aunt Sue' might be XY rather than XX. Questions soliciting this information should be phrased to encourage capture of genetic sex where known. However, systems performing analysis should also allow for the possibility of imprecision with this element.
requirements:
  v: Not all relationship codes imply sex and the relative's sex can be relevant for risk assessments.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.sex
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: Sex
  strength:
    v: extensible
  description:
    v: Codes describing the sex assigned at birth as documented on the birth registration.
  value set:
    v: http://hl7.org/fhir/ValueSet/administrative-gender
    link: http://hl7.org/fhir/ValueSet/administrative-gender

id:
  v: FamilyMemberHistory.born[x]
path:
  v: FamilyMemberHistory.born[x]
short:
  v: (approximate) date of birth
definition:
  v: The actual or approximate date of birth of the relative.
requirements:
  v: Allows calculation of the relative's age.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.born[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
type:
  code:
    v: date
type:
  code:
    v: string
condition:
  v: fhs-1
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=LIV, determinerCode=INSTANCE]. birthDate (could be URG)

id:
  v: FamilyMemberHistory.age[x]
path:
  v: FamilyMemberHistory.age[x]
short:
  v: (approximate) age
definition:
  v: The age of the relative at the time the family member history is recorded.
comment:
  v: use estimatedAge to indicate whether the age is actual or not.
requirements:
  v: While age can be calculated from date of birth, sometimes recording age directly is more natural for clinicians.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.age[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Age
type:
  code:
    v: Range
type:
  code:
    v: string
condition:
  v: fhs-1
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: participation[typeCode=SBJ].act[classCode=OBS,moodCode=EVN, code="age"].value

id:
  v: FamilyMemberHistory.estimatedAge
path:
  v: FamilyMemberHistory.estimatedAge
short:
  v: Age is estimated?
definition:
  v: If true, indicates that the age value specified is an estimated value.
comment:
  v: This element is labeled as a modifier because the fact that age is estimated can/should change the results of any algorithm that calculates based on the specified age.
requirements:
  v: Clinicians often prefer to specify an estimaged age rather than an age range.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.estimatedAge
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: It is unknown whether the age is an estimate or not
condition:
  v: fhs-2
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true

id:
  v: FamilyMemberHistory.deceased[x]
path:
  v: FamilyMemberHistory.deceased[x]
short:
  v: Dead? How old/when?
definition:
  v: Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.deceased[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Age
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: player[classCode=LIV, determinerCode=INSTANCE].deceasedInd, deceasedDate (could be URG) For age, you'd hang an observation off the role

id:
  v: FamilyMemberHistory.reasonCode
path:
  v: FamilyMemberHistory.reasonCode
short:
  v: Why was family member history performed?
definition:
  v: Describes why the family member history occurred in coded or textual form.
comment:
  v: Textual reasons can be captured using reasonCode.text.
min:
  v: 0
max:
  v: *
base:
  path:
    v: FamilyMemberHistory.reasonCode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: FamilyHistoryReason
  strength:
    v: example
  description:
    v: Codes indicating why the family member history was done.
  value set:
    v: http://hl7.org/fhir/ValueSet/clinical-findings
    link: http://hl7.org/fhir/ValueSet/clinical-findings
mapping:
  identity:
    v: workflow
  map:
    v: Event.reasonCode
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: .reasonCode

id:
  v: FamilyMemberHistory.reasonCode.id
path:
  v: FamilyMemberHistory.reasonCode.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
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.reasonCode.extension
path:
  v: FamilyMemberHistory.reasonCode.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.reasonCode.coding
path:
  v: FamilyMemberHistory.reasonCode.coding
short:
  v: Code defined by a terminology system
definition:
  v: A reference to a code defined by a terminology system.
comment:
  v: Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.
requirements:
  v: Allows for alternative encodings within a code system, and translations to other code systems.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CodeableConcept.coding
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Coding
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1-8, C*E.10-22
mapping:
  identity:
    v: rim
  map:
    v: union(., ./translation)
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding

id:
  v: FamilyMemberHistory.reasonCode.coding.id
path:
  v: FamilyMemberHistory.reasonCode.coding.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
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.reasonCode.coding.extension
path:
  v: FamilyMemberHistory.reasonCode.coding.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.reasonCode.coding.system
path:
  v: FamilyMemberHistory.reasonCode.coding.system
short:
  v: Identity of the terminology system
definition:
  v: The identification of the code system that defines the meaning of the symbol in the code.
comment:
  v: The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.
requirements:
  v: Need to be unambiguous about the source of the definition of the symbol.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
fixed: uri
  v: https://icd.who.int/browse/2024-01/mms/es
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.3
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystem
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem

id:
  v: FamilyMemberHistory.reasonCode.coding.version
path:
  v: FamilyMemberHistory.reasonCode.coding.version
short:
  v: Version of the system - if relevant
definition:
  v: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
comment:
  v: Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.7
mapping:
  identity:
    v: rim
  map:
    v: ./codeSystemVersion
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion

id:
  v: FamilyMemberHistory.reasonCode.coding.code
path:
  v: FamilyMemberHistory.reasonCode.coding.code
short:
  v: Symbol in syntax defined by the system
definition:
  v: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
requirements:
  v: Need to refer to a particular code in the system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Coding.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.1
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code

id:
  v: FamilyMemberHistory.reasonCode.coding.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: FamilyMemberHistory.reasonCode.coding.display
short:
  v: Representation defined by the system
definition:
  v: A representation of the meaning of the code in the system, following the rules of the system.
requirements:
  v: Need to be able to carry a human-readable meaning of the code for readers that do not know the system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.2 - but note this is not well followed
mapping:
  identity:
    v: rim
  map:
    v: CV.displayName
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName

id:
  v: FamilyMemberHistory.reasonCode.coding.userSelected
path:
  v: FamilyMemberHistory.reasonCode.coding.userSelected
short:
  v: If this coding was chosen directly by the user
definition:
  v: Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
comment:
  v: Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.
requirements:
  v: This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Coding.userSelected
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: Sometimes implied by being first
mapping:
  identity:
    v: rim
  map:
    v: CD.codingRationale
mapping:
  identity:
    v: orim
  map:
    v: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]

id:
  v: FamilyMemberHistory.reasonCode.text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
  value: boolean
    v: true
path:
  v: FamilyMemberHistory.reasonCode.text
short:
  v: Plain text representation of the concept
definition:
  v: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
comment:
  v: Very often the text is the same as a displayName of one of the codings.
requirements:
  v: The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CodeableConcept.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: C*E.9. But note many systems use C*E.2 for this
mapping:
  identity:
    v: rim
  map:
    v: ./originalText[mediaType/code="text/plain"]/data
mapping:
  identity:
    v: orim
  map:
    v: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText

id:
  v: FamilyMemberHistory.reasonReference
path:
  v: FamilyMemberHistory.reasonReference
short:
  v: Why was family member history performed?
definition:
  v: Indicates a Condition, Observation, AllergyIntolerance, or QuestionnaireResponse that justifies this family member history event.
min:
  v: 0
max:
  v: *
base:
  path:
    v: FamilyMemberHistory.reasonReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileConditionHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileConditionHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileObservationHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileObservationHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileAllergyIntoleranceHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileAllergyIntoleranceHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileDiagnosticReportHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileDiagnosticReportHCEU
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Event.reasonReference
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: rim
  map:
    v: .outboundRelationship[typeCode=RSON].target

id:
  v: FamilyMemberHistory.note
path:
  v: FamilyMemberHistory.note
short:
  v: General note about related person
definition:
  v: This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible.
min:
  v: 0
max:
  v: *
base:
  path:
    v: FamilyMemberHistory.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
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
    link: http://hl7.org/fhir/StructureDefinition/Element
must support:
  v: true
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Event.note
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value

id:
  v: FamilyMemberHistory.condition
path:
  v: FamilyMemberHistory.condition
short:
  v: Condition that the related person had
definition:
  v: The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition.
min:
  v: 0
max:
  v: 0
base:
  path:
    v: FamilyMemberHistory.condition
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: 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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION, value<Diagnosis]

id:
  v: FamilyMemberHistory.condition.id
path:
  v: FamilyMemberHistory.condition.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
    value: url
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.condition.extension
path:
  v: FamilyMemberHistory.condition.extension
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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: FamilyMemberHistory.condition.modifierExtension
path:
  v: FamilyMemberHistory.condition.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
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
    link: http://hl7.org/fhir/StructureDefinition/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
    link: http://hl7.org/fhir/StructureDefinition/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: FamilyMemberHistory.condition.code
path:
  v: FamilyMemberHistory.condition.code
short:
  v: Condition suffered by relation
definition:
  v: The actual condition specified. Could be a coded condition (like MI or Diabetes) or a less specific string like 'cancer' depending on how much is known about the condition and the capabilities of the creating system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.condition.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ConditionCode
  strength:
    v: example
  description:
    v: Identification of the Condition or diagnosis.
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-code
    link: http://hl7.org/fhir/ValueSet/condition-code
mapping:
  identity:
    v: rim
  map:
    v: .value

id:
  v: FamilyMemberHistory.condition.outcome
path:
  v: FamilyMemberHistory.condition.outcome
short:
  v: deceased | permanent disability | etc.
definition:
  v: Indicates what happened following the condition. If the condition resulted in death, deceased date is captured on the relation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.condition.outcome
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value: string
      v: ConditionOutcome
  strength:
    v: example
  description:
    v: The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.
  value set:
    v: http://hl7.org/fhir/ValueSet/condition-outcome
    link: http://hl7.org/fhir/ValueSet/condition-outcome
mapping:
  identity:
    v: rim
  map:
    v: outboundRelationship[typeCode=OUTC)].target[classCode=OBS, moodCode=EVN, code=ActCode#ASSERTION].value

id:
  v: FamilyMemberHistory.condition.contributedToDeath
path:
  v: FamilyMemberHistory.condition.contributedToDeath
short:
  v: Whether the condition contributed to the cause of death
definition:
  v: This condition contributed to the cause of death of the related person. If contributedToDeath is not populated, then it is unknown.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.condition.contributedToDeath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false

id:
  v: FamilyMemberHistory.condition.onset[x]
path:
  v: FamilyMemberHistory.condition.onset[x]
short:
  v: When condition first manifested
definition:
  v: Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence.
requirements:
  v: Age of onset of a condition in relatives is predictive of risk for the patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: FamilyMemberHistory.condition.onset[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Age
type:
  code:
    v: Range
type:
  code:
    v: Period
type:
  code:
    v: string
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code="Subject Age at measurement", value<Diagnosis].value[@xsi:typeCode='TS' or 'IVL_TS'] Use originalText for string

id:
  v: FamilyMemberHistory.condition.note
path:
  v: FamilyMemberHistory.condition.note
short:
  v: Extra information about condition
definition:
  v: An area where general notes can be placed about this specific condition.
min:
  v: 0
max:
  v: *
base:
  path:
    v: FamilyMemberHistory.condition.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
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
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=ActCode#ANNGEN].value

element:
  id:
    v: FamilyMemberHistory.extension
  path:
    v: FamilyMemberHistory.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
  max:
    v: 1
element:
  id:
    v: FamilyMemberHistory.extension:genderIdentity
  path:
    v: FamilyMemberHistory.extension
  slice name:
    v: genderIdentity
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Extension
    profile:
      v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-GenderIdentity
      link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-GenderIdentity
element:
  id:
    v: FamilyMemberHistory.identifier
  path:
    v: FamilyMemberHistory.identifier
  slicing:
    discriminator:
      type:
        v: pattern
      path:
        v: use
    rules:
      v: open
  definition:
    v: Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server. ☛ El sistema de codificación es un campo opcional y en esta caso esta definido por los catálogos de los sistemas de atención clínica donde se crean los registros clínicos; se recomienda que dicho manejo sea controlado por las fuentes de forma tal que se pueda identificar de forma univoca cada registro de condición clínica asociada al paciente
  min:
    v: 1
  must support:
    v: true
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier
  path:
    v: FamilyMemberHistory.identifier
  slice name:
    v: HISdentifier
  definition:
    v: Identificador del registro en el HIS origen
  min:
    v: 1
  max:
    v: 1
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.use
  path:
    v: FamilyMemberHistory.identifier.use
  min:
    v: 1
  fixed: code
    v: usual
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.type
  path:
    v: FamilyMemberHistory.identifier.type
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.system
  path:
    v: FamilyMemberHistory.identifier.system
  min:
    v: 1
  example:
    label:
      v: HIS uri
    value: uri
      v: http://hospitalSystemInformation.example.org/FamilyMemberHistories/
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.value
  path:
    v: FamilyMemberHistory.identifier.value
  definition:
    v: The portion of the identifier typically relevant to the user and which is unique within the context of the system. A pesar de que se pueden asociar multiples identificadores canonicos al recurso, se recomienda tener un valor unico tipo GUID, OID o con llaves compuestas
  min:
    v: 1
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.period
  path:
    v: FamilyMemberHistory.identifier.period
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.identifier:HISdentifier.assigner
  path:
    v: FamilyMemberHistory.identifier.assigner
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.instantiatesCanonical
  path:
    v: FamilyMemberHistory.instantiatesCanonical
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.instantiatesUri
  path:
    v: FamilyMemberHistory.instantiatesUri
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.status
  path:
    v: FamilyMemberHistory.status
  short:
    v: completed | partial
  definition:
    v: A code specifying the status of the record of the family history of a specific family member. Solo se permiten los valores "completed", se tiene disponible toda la información clínica del familiar o en su defecto o una parte de la misma (valor "partial"). Los demas posibles NO son permitidos
  comment:
    v: This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. Solo se permiten los valores "completed", se tiene disponible toda la información clínica del familiar o en su defecto o una parte de la misma (valor "partial"). Los demas posibles NO son permitidos
  example:
    label:
      v: ej
    value: code
      v: partial
  example:
    label:
      v: ej2
    value: code
      v: completed
element:
  id:
    v: FamilyMemberHistory.dataAbsentReason
  path:
    v: FamilyMemberHistory.dataAbsentReason
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.patient
  path:
    v: FamilyMemberHistory.patient
  type:
    code:
      v: Reference
    target profile:
      v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfilePatientHCEU
      link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfilePatientHCEU
element:
  id:
    v: FamilyMemberHistory.date
  path:
    v: FamilyMemberHistory.date
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.name
  path:
    v: FamilyMemberHistory.name
  max:
    v: 0
element:
  id:
    v: FamilyMemberHistory.relationship
  path:
    v: FamilyMemberHistory.relationship
  example:
    label:
      v: ej
    value: CodeableConcept
element:
  id:
    v: FamilyMemberHistory.sex
  path:
    v: FamilyMemberHistory.sex
  max:
    v: 0

v: BRO

v: Brother

id:
  v: FamilyMemberHistory.deceased[x]
path:
  v: FamilyMemberHistory.deceased[x]
type:
  code:
    v: Age

id:
  v: FamilyMemberHistory.reasonCode.coding
path:
  v: FamilyMemberHistory.reasonCode.coding
min:
  v: 1
max:
  v: 1

id:
  v: FamilyMemberHistory.reasonCode.coding.system
path:
  v: FamilyMemberHistory.reasonCode.coding.system
min:
  v: 1
fixed: uri
  v: https://icd.who.int/browse/2024-01/mms/es

id:
  v: FamilyMemberHistory.reasonCode.coding.code
path:
  v: FamilyMemberHistory.reasonCode.coding.code
min:
  v: 1

id:
  v: FamilyMemberHistory.reasonCode.text
path:
  v: FamilyMemberHistory.reasonCode.text
min:
  v: 1

id:
  v: FamilyMemberHistory.reasonReference
path:
  v: FamilyMemberHistory.reasonReference
type:
  code:
    v: Reference
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileConditionHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileConditionHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileObservationHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileObservationHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileAllergyIntoleranceHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileAllergyIntoleranceHCEU
  target profile:
    v: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileDiagnosticReportHCEU
    link: https://ohapi-fhir-service-fhir-project.apps.indraclusterdes.eastus.aroapp.io/StructureDefinition-ProfileDiagnosticReportHCEU

id:
  v: FamilyMemberHistory.note
path:
  v: FamilyMemberHistory.note
must support:
  v: true

id:
  v: FamilyMemberHistory.condition
path:
  v: FamilyMemberHistory.condition
max:
  v: 0