MODS-SubjectOfCare
type: StructureDefinition
node role: treeRoot
id:
  v: MODS-SubjectOfCare
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition MODS-SubjectOfCare Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> MODS-SubjectOfCare 0..* Element MODS Subject of Care Elements defined in Ancestors:@id, <a href="http://hl7.org/fhir/R4/datatypes.html#Element" title="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.">extension Instances of this logical model can be the target of a Reference #xD; name 1..1 BackboneElement Person Name #xD; family 1..1 string Person Family/Surname #xD; given 1..1 string Person Given/Forename #xD; identification 1..1 BackboneElement Person Identification #xD; nhsNumber 1..1 BackboneElement Person NHS Number #xD; value <a style="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;; padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/R4/conformance-rules.html#constraints" title="This element has or is affected by constraints ( nhsnumber-invariant )">C 1..1 string NHS Number Constraints: nhsnumber-invariant #xD; statusIndicator 1..1 Coding NHS Number Trace Status Indicator Binding: NHS Number Verification Status (required) #xD; otherIdentifier 0..* BackboneElement Person Other Identifier #xD; value 1..1 string Identifier Value #xD; system 1..1 url A URL indicating the identifier’s system or type, used as a logical business identifier rather than a database key. #xD; demographics 1..1 BackboneElement Person Demographics #xD; dateOfBirth <a style="padding-left: 3px; padding-right: 3px; b…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
    l: structuredefinition-type-characteristics
  value: Code
    v: can-be-target
url:
  v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
  l: MODS-SubjectOfCare
version:
  v: 0.1.0
name:
  v: MODSSubjectOfCare
title:
  v: MODS Subject of Care
status:
  v: draft
date:
  v: 2026-03-24T16:18:08+00:00
publisher:
  v: Synanetics Ltd on behalf of DHSC/Social Care Interoperability Platform
contact:
  name:
    v: Synanetics Ltd on behalf of DHSC/Social Care Interoperability Platform
  telecom:
    system:
      v: url
    value:
      v: https://synanetics.com
  telecom:
    system:
      v: email
description:
  v: MODS Definition: A person who seeks to receive, is receiving, or has received care.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: GB
    display:
      v: United Kingdom of Great Britain and Northern Ireland
fhir version:
  v: 4.0.1
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
  l: MODS-SubjectOfCare
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Element
  l: Element
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: MODS-SubjectOfCare
    path:
      v: MODS-SubjectOfCare
    short:
      v: MODS Subject of Care
    definition:
      v: MODS Definition: A person who seeks to receive, is receiving, or has received care.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element
      min:
        v: 0
      max:
        v: *
    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
        l: Element
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: MODS-SubjectOfCare.id
    path:
      v: MODS-SubjectOfCare.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1
    type:
      extension:
        value: Url
      code:
        v: http://hl7.org/fhirpath/System.String
        l: System.String
    is modifier:
      v: false
    is summary:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: MODS-SubjectOfCare.extension
    path:
      v: MODS-SubjectOfCare.extension
    slicing:
      description:
        v: Extensions are always sliced by (at least) url
      rules:
        v: open
    short:
      v: Additional content defined by implementations
    definition:
      v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
    comment:
      v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
    alias:
      v: extensions
    alias:
      v: user content
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Element.extension
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Extension
        l: Extension
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children

Url
v: string
l: string

v: value

v: url

v: hasValue() or (children().count() > id.count())

v: @value|f:*|h:div

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

v: false

v: false

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

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

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

id:
  v: MODS-SubjectOfCare.name.extension
path:
  v: MODS-SubjectOfCare.name.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.name.modifierExtension
path:
  v: MODS-SubjectOfCare.name.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.name.family
path:
  v: MODS-SubjectOfCare.name.family
short:
  v: Person Family/Surname
definition:
  v: Person Family/Surname
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.name.family
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: MODS-SubjectOfCare.name.given
path:
  v: MODS-SubjectOfCare.name.given
short:
  v: Person Given/Forename
definition:
  v: Person Given/Forename
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.name.given
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

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

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

id:
  v: MODS-SubjectOfCare.identification.extension
path:
  v: MODS-SubjectOfCare.identification.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.identification.modifierExtension
path:
  v: MODS-SubjectOfCare.identification.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

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

id:
  v: MODS-SubjectOfCare.identification.nhsNumber.extension
path:
  v: MODS-SubjectOfCare.identification.nhsNumber.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.identification.nhsNumber.modifierExtension
path:
  v: MODS-SubjectOfCare.identification.nhsNumber.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.identification.nhsNumber.value
path:
  v: MODS-SubjectOfCare.identification.nhsNumber.value
short:
  v: NHS Number
definition:
  v: NHS Number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.identification.nhsNumber.value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: nhsnumber-invariant
  severity:
    v: error
  human:
    v: 10-digit NHS Number (leading zeros allowed). MUST be exactly 10 digits (numeric only)
  expression:
    v: $this.matches('^\d{10}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.identification.nhsNumber.statusIndicator
path:
  v: MODS-SubjectOfCare.identification.nhsNumber.statusIndicator
short:
  v: NHS Number Trace Status Indicator
definition:
  v: NHS Number Trace Status Indicator
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.identification.nhsNumber.statusIndicator
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-NHSNumberVerficationStatus-1
    l: MODS-NHSNumberVerficationStatus-1

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

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

id:
  v: MODS-SubjectOfCare.identification.otherIdentifier.extension
path:
  v: MODS-SubjectOfCare.identification.otherIdentifier.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.identification.otherIdentifier.modifierExtension
path:
  v: MODS-SubjectOfCare.identification.otherIdentifier.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.identification.otherIdentifier.value
path:
  v: MODS-SubjectOfCare.identification.otherIdentifier.value
short:
  v: Identifier Value
definition:
  v: Identifier Value
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.identification.otherIdentifier.value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: MODS-SubjectOfCare.identification.otherIdentifier.system
path:
  v: MODS-SubjectOfCare.identification.otherIdentifier.system
short:
  v: A URL indicating the identifier’s system or type, used as a logical business identifier rather than a database key.
definition:
  v: A URL indicating the identifier’s system or type, used as a logical business identifier rather than a database key.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.identification.otherIdentifier.system
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: url
    l: url

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

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

id:
  v: MODS-SubjectOfCare.demographics.extension
path:
  v: MODS-SubjectOfCare.demographics.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.demographics.modifierExtension
path:
  v: MODS-SubjectOfCare.demographics.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.demographics.dateOfBirth
path:
  v: MODS-SubjectOfCare.demographics.dateOfBirth
short:
  v: Date Of Birth
definition:
  v: Date Of Birth
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.dateOfBirth
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: birthdeathdate-invariant
  severity:
    v: error
  human:
    v: Subject of Care Birth and Death date MUST be represented as Dates (YYYY-MM-DD only)
  expression:
    v: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.demographics.sex
path:
  v: MODS-SubjectOfCare.demographics.sex
short:
  v: Person Sex
definition:
  v: Person Sex
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.sex
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonBirthSexCode-1
    l: MODS-PersonBirthSexCode-1

id:
  v: MODS-SubjectOfCare.demographics.maritalStatus
path:
  v: MODS-SubjectOfCare.demographics.maritalStatus
short:
  v: Person Marital Status
definition:
  v: Person Marital Status
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.maritalStatus
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonMaritalStatusCode-1
    l: MODS-PersonMaritalStatusCode-1

id:
  v: MODS-SubjectOfCare.demographics.ethnicity
path:
  v: MODS-SubjectOfCare.demographics.ethnicity
short:
  v: Person Ethnicity
definition:
  v: Person Ethnicity
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.ethnicity
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonEthnicityCode-1
    l: MODS-PersonEthnicityCode-1

id:
  v: MODS-SubjectOfCare.demographics.genderIdentity
path:
  v: MODS-SubjectOfCare.demographics.genderIdentity
short:
  v: Person Gender Identity
definition:
  v: Person Gender Identity
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.genderIdentity
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonGenderIdentityCode-1
    l: MODS-PersonGenderIdentityCode-1

id:
  v: MODS-SubjectOfCare.demographics.religion
path:
  v: MODS-SubjectOfCare.demographics.religion
short:
  v: Person Religion
definition:
  v: Person Religion
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.religion
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonReligionCode-1
    l: MODS-PersonReligionCode-1

id:
  v: MODS-SubjectOfCare.demographics.sexualOrientation
path:
  v: MODS-SubjectOfCare.demographics.sexualOrientation
short:
  v: Person Sexual Orientation
definition:
  v: Person Sexual Orientation
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.sexualOrientation
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonSexualOrientation-1
    l: MODS-PersonSexualOrientation-1

id:
  v: MODS-SubjectOfCare.demographics.firstLanguage
path:
  v: MODS-SubjectOfCare.demographics.firstLanguage
short:
  v: Person First Language
definition:
  v: Person First Language
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.firstLanguage
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages
    l: all-languages

id:
  v: MODS-SubjectOfCare.demographics.otherLanguage
path:
  v: MODS-SubjectOfCare.demographics.otherLanguage
short:
  v: Person Other Language
definition:
  v: Person Other Language
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.otherLanguage
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages
    l: all-languages

id:
  v: MODS-SubjectOfCare.demographics.interpreterRequired
path:
  v: MODS-SubjectOfCare.demographics.interpreterRequired
short:
  v: Person Interpreter Required
definition:
  v: Person Interpreter Required
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.interpreterRequired
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean

id:
  v: MODS-SubjectOfCare.demographics.immigrationStatus
path:
  v: MODS-SubjectOfCare.demographics.immigrationStatus
short:
  v: Person Immigration Status
definition:
  v: Person Immigration Status
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.immigrationStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: MODS-SubjectOfCare.demographics.primaryNationality
path:
  v: MODS-SubjectOfCare.demographics.primaryNationality
short:
  v: Person Primary Nationality
definition:
  v: Person Primary Nationality
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.primaryNationality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

id:
  v: MODS-SubjectOfCare.demographics.otherNationality
path:
  v: MODS-SubjectOfCare.demographics.otherNationality
short:
  v: Person Other Nationality
definition:
  v: Person Other Nationality
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.otherNationality
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

id:
  v: MODS-SubjectOfCare.demographics.pregnancyStatus
path:
  v: MODS-SubjectOfCare.demographics.pregnancyStatus
short:
  v: Female Pregnancy Status
definition:
  v: Female Pregnancy Status
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.pregnancyStatus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-FemalePregnancyStatus-1
    l: MODS-FemalePregnancyStatus-1

id:
  v: MODS-SubjectOfCare.demographics.pronouns
path:
  v: MODS-SubjectOfCare.demographics.pronouns
short:
  v: Person Pronouns
definition:
  v: Person Pronouns
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.demographics.pronouns
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

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

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

id:
  v: MODS-SubjectOfCare.address.extension
path:
  v: MODS-SubjectOfCare.address.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.address.modifierExtension
path:
  v: MODS-SubjectOfCare.address.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.address.addressEntry1
path:
  v: MODS-SubjectOfCare.address.addressEntry1
short:
  v: First address line
definition:
  v: First address line
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.addressEntry1
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry2
path:
  v: MODS-SubjectOfCare.address.addressEntry2
short:
  v: Second address line
definition:
  v: Second address line
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.addressEntry2
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry3
path:
  v: MODS-SubjectOfCare.address.addressEntry3
short:
  v: Third address line
definition:
  v: Third address line
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.addressEntry3
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry4
path:
  v: MODS-SubjectOfCare.address.addressEntry4
short:
  v: Fourth address line
definition:
  v: Fourth address line
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.addressEntry4
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.postCode
path:
  v: MODS-SubjectOfCare.address.postCode
short:
  v: Address postal code
definition:
  v: Address postal code
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.postCode
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addresspostcode-invariant
  severity:
    v: error
  human:
    v: Only UK postcodes are valid
  expression:
    v: $this.matches('^[a-zA-Z0-9]{0,8}$') and $this.length() <= 8
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.country
path:
  v: MODS-SubjectOfCare.address.country
short:
  v: Address Country
definition:
  v: Address Country
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.address.country
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

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

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

id:
  v: MODS-SubjectOfCare.contactDetails.extension
path:
  v: MODS-SubjectOfCare.contactDetails.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.contactDetails.modifierExtension
path:
  v: MODS-SubjectOfCare.contactDetails.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails
short:
  v: Person Contact Email Address Details
definition:
  v: Person Contact Email Address Details
min:
  v: 0
max:
  v: *
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.emailAddressDetails
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

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

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.extension
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.modifierExtension
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.emailAddress
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.emailAddress
short:
  v: Email address
definition:
  v: Email address
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.emailAddress
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: emailaddress-invariant
  severity:
    v: error
  human:
    v: MUST be a valid email address
  expression:
    v: $this.matches('[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.preferredOrder
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.preferredOrder
short:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
definition:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.preferredOrder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.type
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.type
short:
  v: Contact Email address type
definition:
  v: Contact Email address type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-EmailAddressType-1
    l: MODS-EmailAddressType-1

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails
short:
  v: Person Contact Telephone Number Details
definition:
  v: Person Contact Telephone Number Details
min:
  v: 0
max:
  v: *
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.telephoneDetails
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

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

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.extension
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.modifierExtension
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.telephoneNumber
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.telephoneNumber
short:
  v: Telephone Number
definition:
  v: Telephone Number
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.telephoneDetails.telephoneNumber
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: telephonenumber-invariant
  severity:
    v: error
  human:
    v: Telephone Numbers MUST be valid UK land line or mobile number, contain digits only, and not exceed 35 characters length
  expression:
    v: $this.matches('^(?:\+44\s?|0)(?:\s?\d){9,10}$') and $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.preferredOrder
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.preferredOrder
short:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
definition:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.telephoneDetails.preferredOrder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
    l: positiveInt

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.type
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.type
short:
  v: Contact Telephone Number type
definition:
  v: Contact Telephone Number type
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.contactDetails.telephoneDetails.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-TelephoneNumberType-1
    l: MODS-TelephoneNumberType-1

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

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

id:
  v: MODS-SubjectOfCare.deathDetails.extension
path:
  v: MODS-SubjectOfCare.deathDetails.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MODS-SubjectOfCare.deathDetails.modifierExtension
path:
  v: MODS-SubjectOfCare.deathDetails.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MODS-SubjectOfCare.deathDetails.deathCauseIdentificationMethod
path:
  v: MODS-SubjectOfCare.deathDetails.deathCauseIdentificationMethod
short:
  v: Death Cause Identification Method
definition:
  v: Death Cause Identification Method
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.deathCauseIdentificationMethod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathCauseIdentificationMethod-1
    l: MODS-DeathCauseIdentificationMethod-1

id:
  v: MODS-SubjectOfCare.deathDetails.deathLocationType
path:
  v: MODS-SubjectOfCare.deathDetails.deathLocationType
short:
  v: Preferred Death Location Type
definition:
  v: Preferred Death Location Type
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.deathLocationType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathLocationTypeCode-1
    l: MODS-DeathLocationTypeCode-1

id:
  v: MODS-SubjectOfCare.deathDetails.deathNotAtPreferredLocationReason
path:
  v: MODS-SubjectOfCare.deathDetails.deathNotAtPreferredLocationReason
short:
  v: Death not at preferred location reason
definition:
  v: Death not at preferred location reason
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.deathNotAtPreferredLocationReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathNotAtPreferredLocationReasonCode-1
    l: MODS-DeathNotAtPreferredLocationReasonCode-1

id:
  v: MODS-SubjectOfCare.deathDetails.personDeathDate
path:
  v: MODS-SubjectOfCare.deathDetails.personDeathDate
short:
  v: Person Death Date
definition:
  v: Person Death Date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.personDeathDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: birthdeathdate-invariant
  severity:
    v: error
  human:
    v: Subject of Care Birth and Death date MUST be represented as Dates (YYYY-MM-DD only)
  expression:
    v: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.deathDetails.personDeathTime
path:
  v: MODS-SubjectOfCare.deathDetails.personDeathTime
short:
  v: Person Time of Death
definition:
  v: Person Time of Death
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.personDeathTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: time
    l: time
constraint:
  key:
    v: deathtime-invariant
  severity:
    v: error
  human:
    v: Subject of Care Time of Death, in the format hh:mm:ss
  expression:
    v: $this.matches('([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.deathDetails.personAtRiskOfUnexpectedDeath
path:
  v: MODS-SubjectOfCare.deathDetails.personAtRiskOfUnexpectedDeath
short:
  v: Person at Risk of Unexpected Death
definition:
  v: Person at Risk of Unexpected Death
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.personAtRiskOfUnexpectedDeath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonAtRiskOfUnexpectedDeathIndicator-1
    l: MODS-PersonAtRiskOfUnexpectedDeathIndicator-1

id:
  v: MODS-SubjectOfCare.deathDetails.preferredDeathLocationDiscussedIndicator
path:
  v: MODS-SubjectOfCare.deathDetails.preferredDeathLocationDiscussedIndicator
short:
  v: Preferred Death Location Discussed Indicator
definition:
  v: Preferred Death Location Discussed Indicator
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.deathDetails.preferredDeathLocationDiscussedIndicator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonDeathLocationDiscussedIndicator-1
    l: MODS-PersonDeathLocationDiscussedIndicator-1

id:
  v: MODS-SubjectOfCare.careProvider
path:
  v: MODS-SubjectOfCare.careProvider
short:
  v: A provider organisation, registered with the Care Quality Commission to provide personal care and support to the Subject of care.
definition:
  v: A provider organisation, registered with the Care Quality Commission to provide personal care and support to the Subject of care.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MODS-SubjectOfCare.careProvider
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-CareOrganisation
    l: MODS-CareOrganisation

id:
  v: MODS-SubjectOfCare.generalPractice
path:
  v: MODS-SubjectOfCare.generalPractice
short:
  v: Person's registered GP practice
definition:
  v: Person's registered GP practice
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MODS-SubjectOfCare.generalPractice
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-CareOrganisation
    l: MODS-CareOrganisation

element:
  id:
    v: MODS-SubjectOfCare
  path:
    v: MODS-SubjectOfCare
  short:
    v: MODS Subject of Care
  definition:
    v: MODS Definition: A person who seeks to receive, is receiving, or has received care.
element:
  id:
    v: MODS-SubjectOfCare.name
  path:
    v: MODS-SubjectOfCare.name
  short:
    v: Person Name
  definition:
    v: Person Name
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: MODS-SubjectOfCare.name.family
  path:
    v: MODS-SubjectOfCare.name.family
  short:
    v: Person Family/Surname
  definition:
    v: Person Family/Surname
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: MODS-SubjectOfCare.name.given
  path:
    v: MODS-SubjectOfCare.name.given
  short:
    v: Person Given/Forename
  definition:
    v: Person Given/Forename
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: MODS-SubjectOfCare.identification
  path:
    v: MODS-SubjectOfCare.identification
  short:
    v: Person Identification
  definition:
    v: Person Identification
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: MODS-SubjectOfCare.identification.nhsNumber
  path:
    v: MODS-SubjectOfCare.identification.nhsNumber
  short:
    v: Person NHS Number
  definition:
    v: Person NHS Number
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: MODS-SubjectOfCare.identification.nhsNumber.value
  path:
    v: MODS-SubjectOfCare.identification.nhsNumber.value
  short:
    v: NHS Number
  definition:
    v: NHS Number
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  constraint:
    key:
      v: nhsnumber-invariant
    severity:
      v: error
    human:
      v: 10-digit NHS Number (leading zeros allowed). MUST be exactly 10 digits (numeric only)
    expression:
      v: $this.matches('^\d{10}$')
    source:
      v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
      l: MODS-SubjectOfCare
element:
  id:
    v: MODS-SubjectOfCare.identification.nhsNumber.statusIndicator
  path:
    v: MODS-SubjectOfCare.identification.nhsNumber.statusIndicator
  short:
    v: NHS Number Trace Status Indicator
  definition:
    v: NHS Number Trace Status Indicator
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Coding
      l: Coding
  binding:
    strength:
      v: required
    value set:
      v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-NHSNumberVerficationStatus-1
      l: MODS-NHSNumberVerficationStatus-1
element:
  id:
    v: MODS-SubjectOfCare.identification.otherIdentifier
  path:
    v: MODS-SubjectOfCare.identification.otherIdentifier
  short:
    v: Person Other Identifier
  definition:
    v: Person Other Identifier
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: MODS-SubjectOfCare.identification.otherIdentifier.value
  path:
    v: MODS-SubjectOfCare.identification.otherIdentifier.value
  short:
    v: Identifier Value
  definition:
    v: Identifier Value
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: string
      l: string
element:
  id:
    v: MODS-SubjectOfCare.identification.otherIdentifier.system
  path:
    v: MODS-SubjectOfCare.identification.otherIdentifier.system
  short:
    v: A URL indicating the identifier’s system or type, used as a logical business identifier rather than a database key.
  definition:
    v: A URL indicating the identifier’s system or type, used as a logical business identifier rather than a database key.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: url
      l: url
element:
  id:
    v: MODS-SubjectOfCare.demographics
  path:
    v: MODS-SubjectOfCare.demographics

v: Person Demographics

v: Person Demographics

v: 1

v: 1

code:
  v: BackboneElement
  l: BackboneElement

id:
  v: MODS-SubjectOfCare.demographics.dateOfBirth
path:
  v: MODS-SubjectOfCare.demographics.dateOfBirth
short:
  v: Date Of Birth
definition:
  v: Date Of Birth
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: birthdeathdate-invariant
  severity:
    v: error
  human:
    v: Subject of Care Birth and Death date MUST be represented as Dates (YYYY-MM-DD only)
  expression:
    v: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.demographics.sex
path:
  v: MODS-SubjectOfCare.demographics.sex
short:
  v: Person Sex
definition:
  v: Person Sex
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonBirthSexCode-1
    l: MODS-PersonBirthSexCode-1

id:
  v: MODS-SubjectOfCare.demographics.maritalStatus
path:
  v: MODS-SubjectOfCare.demographics.maritalStatus
short:
  v: Person Marital Status
definition:
  v: Person Marital Status
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonMaritalStatusCode-1
    l: MODS-PersonMaritalStatusCode-1

id:
  v: MODS-SubjectOfCare.demographics.ethnicity
path:
  v: MODS-SubjectOfCare.demographics.ethnicity
short:
  v: Person Ethnicity
definition:
  v: Person Ethnicity
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonEthnicityCode-1
    l: MODS-PersonEthnicityCode-1

id:
  v: MODS-SubjectOfCare.demographics.genderIdentity
path:
  v: MODS-SubjectOfCare.demographics.genderIdentity
short:
  v: Person Gender Identity
definition:
  v: Person Gender Identity
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonGenderIdentityCode-1
    l: MODS-PersonGenderIdentityCode-1

id:
  v: MODS-SubjectOfCare.demographics.religion
path:
  v: MODS-SubjectOfCare.demographics.religion
short:
  v: Person Religion
definition:
  v: Person Religion
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonReligionCode-1
    l: MODS-PersonReligionCode-1

id:
  v: MODS-SubjectOfCare.demographics.sexualOrientation
path:
  v: MODS-SubjectOfCare.demographics.sexualOrientation
short:
  v: Person Sexual Orientation
definition:
  v: Person Sexual Orientation
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonSexualOrientation-1
    l: MODS-PersonSexualOrientation-1

id:
  v: MODS-SubjectOfCare.demographics.firstLanguage
path:
  v: MODS-SubjectOfCare.demographics.firstLanguage
short:
  v: Person First Language
definition:
  v: Person First Language
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages
    l: all-languages

id:
  v: MODS-SubjectOfCare.demographics.otherLanguage
path:
  v: MODS-SubjectOfCare.demographics.otherLanguage
short:
  v: Person Other Language
definition:
  v: Person Other Language
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages
    l: all-languages

id:
  v: MODS-SubjectOfCare.demographics.interpreterRequired
path:
  v: MODS-SubjectOfCare.demographics.interpreterRequired
short:
  v: Person Interpreter Required
definition:
  v: Person Interpreter Required
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean

id:
  v: MODS-SubjectOfCare.demographics.immigrationStatus
path:
  v: MODS-SubjectOfCare.demographics.immigrationStatus
short:
  v: Person Immigration Status
definition:
  v: Person Immigration Status
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: MODS-SubjectOfCare.demographics.primaryNationality
path:
  v: MODS-SubjectOfCare.demographics.primaryNationality
short:
  v: Person Primary Nationality
definition:
  v: Person Primary Nationality
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

id:
  v: MODS-SubjectOfCare.demographics.otherNationality
path:
  v: MODS-SubjectOfCare.demographics.otherNationality
short:
  v: Person Other Nationality
definition:
  v: Person Other Nationality
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

id:
  v: MODS-SubjectOfCare.demographics.pregnancyStatus
path:
  v: MODS-SubjectOfCare.demographics.pregnancyStatus
short:
  v: Female Pregnancy Status
definition:
  v: Female Pregnancy Status
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-FemalePregnancyStatus-1
    l: MODS-FemalePregnancyStatus-1

id:
  v: MODS-SubjectOfCare.demographics.pronouns
path:
  v: MODS-SubjectOfCare.demographics.pronouns
short:
  v: Person Pronouns
definition:
  v: Person Pronouns
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: MODS-SubjectOfCare.address
path:
  v: MODS-SubjectOfCare.address
short:
  v: Person Address
definition:
  v: Person Address
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: MODS-SubjectOfCare.address.addressEntry1
path:
  v: MODS-SubjectOfCare.address.addressEntry1
short:
  v: First address line
definition:
  v: First address line
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry2
path:
  v: MODS-SubjectOfCare.address.addressEntry2
short:
  v: Second address line
definition:
  v: Second address line
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry3
path:
  v: MODS-SubjectOfCare.address.addressEntry3
short:
  v: Third address line
definition:
  v: Third address line
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.addressEntry4
path:
  v: MODS-SubjectOfCare.address.addressEntry4
short:
  v: Fourth address line
definition:
  v: Fourth address line
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addressline-invariant
  severity:
    v: error
  human:
    v: Address lines MUST not exceed 35 characters in length
  expression:
    v: $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.postCode
path:
  v: MODS-SubjectOfCare.address.postCode
short:
  v: Address postal code
definition:
  v: Address postal code
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: addresspostcode-invariant
  severity:
    v: error
  human:
    v: Only UK postcodes are valid
  expression:
    v: $this.matches('^[a-zA-Z0-9]{0,8}$') and $this.length() <= 8
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.address.country
path:
  v: MODS-SubjectOfCare.address.country
short:
  v: Address Country
definition:
  v: Address Country
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-Country-1
    l: MODS-Country-1

id:
  v: MODS-SubjectOfCare.contactDetails
path:
  v: MODS-SubjectOfCare.contactDetails
short:
  v: Person Contact Details
definition:
  v: Person Contact Details
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails
short:
  v: Person Contact Email Address Details
definition:
  v: Person Contact Email Address Details
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.emailAddress
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.emailAddress
short:
  v: Email address
definition:
  v: Email address
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: emailaddress-invariant
  severity:
    v: error
  human:
    v: MUST be a valid email address
  expression:
    v: $this.matches('[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.preferredOrder
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.preferredOrder
short:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
definition:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: positiveInt
    l: positiveInt

id:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.type
path:
  v: MODS-SubjectOfCare.contactDetails.emailAddressDetails.type
short:
  v: Contact Email address type
definition:
  v: Contact Email address type
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-EmailAddressType-1
    l: MODS-EmailAddressType-1

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails
short:
  v: Person Contact Telephone Number Details
definition:
  v: Person Contact Telephone Number Details
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.telephoneNumber
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.telephoneNumber
short:
  v: Telephone Number
definition:
  v: Telephone Number
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: telephonenumber-invariant
  severity:
    v: error
  human:
    v: Telephone Numbers MUST be valid UK land line or mobile number, contain digits only, and not exceed 35 characters length
  expression:
    v: $this.matches('^(?:\+44\s?|0)(?:\s?\d){9,10}$') and $this.length() <= 35
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.preferredOrder
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.preferredOrder
short:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
definition:
  v: 1 indicates the preferred choice. Empty/not present indicates no preference.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: positiveInt
    l: positiveInt

id:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.type
path:
  v: MODS-SubjectOfCare.contactDetails.telephoneDetails.type
short:
  v: Contact Telephone Number type
definition:
  v: Contact Telephone Number type
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-TelephoneNumberType-1
    l: MODS-TelephoneNumberType-1

id:
  v: MODS-SubjectOfCare.deathDetails
path:
  v: MODS-SubjectOfCare.deathDetails
short:
  v: Person Death Details
definition:
  v: Person Death Details
min:
  v: 0
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: MODS-SubjectOfCare.deathDetails.deathCauseIdentificationMethod
path:
  v: MODS-SubjectOfCare.deathDetails.deathCauseIdentificationMethod
short:
  v: Death Cause Identification Method
definition:
  v: Death Cause Identification Method
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathCauseIdentificationMethod-1
    l: MODS-DeathCauseIdentificationMethod-1

id:
  v: MODS-SubjectOfCare.deathDetails.deathLocationType
path:
  v: MODS-SubjectOfCare.deathDetails.deathLocationType
short:
  v: Preferred Death Location Type
definition:
  v: Preferred Death Location Type
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathLocationTypeCode-1
    l: MODS-DeathLocationTypeCode-1

id:
  v: MODS-SubjectOfCare.deathDetails.deathNotAtPreferredLocationReason
path:
  v: MODS-SubjectOfCare.deathDetails.deathNotAtPreferredLocationReason
short:
  v: Death not at preferred location reason
definition:
  v: Death not at preferred location reason
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-DeathNotAtPreferredLocationReasonCode-1
    l: MODS-DeathNotAtPreferredLocationReasonCode-1

id:
  v: MODS-SubjectOfCare.deathDetails.personDeathDate
path:
  v: MODS-SubjectOfCare.deathDetails.personDeathDate
short:
  v: Person Death Date
definition:
  v: Person Death Date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: birthdeathdate-invariant
  severity:
    v: error
  human:
    v: Subject of Care Birth and Death date MUST be represented as Dates (YYYY-MM-DD only)
  expression:
    v: $this.toString().matches('^[0-9]{4}-[0-9]{2}-[0-9]{2}$')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.deathDetails.personDeathTime
path:
  v: MODS-SubjectOfCare.deathDetails.personDeathTime
short:
  v: Person Time of Death
definition:
  v: Person Time of Death
min:
  v: 0
max:
  v: 1
type:
  code:
    v: time
    l: time
constraint:
  key:
    v: deathtime-invariant
  severity:
    v: error
  human:
    v: Subject of Care Time of Death, in the format hh:mm:ss
  expression:
    v: $this.matches('([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?')
  source:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-SubjectOfCare
    l: MODS-SubjectOfCare

id:
  v: MODS-SubjectOfCare.deathDetails.personAtRiskOfUnexpectedDeath
path:
  v: MODS-SubjectOfCare.deathDetails.personAtRiskOfUnexpectedDeath
short:
  v: Person at Risk of Unexpected Death
definition:
  v: Person at Risk of Unexpected Death
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonAtRiskOfUnexpectedDeathIndicator-1
    l: MODS-PersonAtRiskOfUnexpectedDeathIndicator-1

id:
  v: MODS-SubjectOfCare.deathDetails.preferredDeathLocationDiscussedIndicator
path:
  v: MODS-SubjectOfCare.deathDetails.preferredDeathLocationDiscussedIndicator
short:
  v: Preferred Death Location Discussed Indicator
definition:
  v: Preferred Death Location Discussed Indicator
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  strength:
    v: required
  value set:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/ValueSet/MODS-PersonDeathLocationDiscussedIndicator-1
    l: MODS-PersonDeathLocationDiscussedIndicator-1

id:
  v: MODS-SubjectOfCare.careProvider
path:
  v: MODS-SubjectOfCare.careProvider
short:
  v: A provider organisation, registered with the Care Quality Commission to provide personal care and support to the Subject of care.
definition:
  v: A provider organisation, registered with the Care Quality Commission to provide personal care and support to the Subject of care.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-CareOrganisation
    l: MODS-CareOrganisation

id:
  v: MODS-SubjectOfCare.generalPractice
path:
  v: MODS-SubjectOfCare.generalPractice
short:
  v: Person's registered GP practice
definition:
  v: Person's registered GP practice
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://metadata.phase2.scip.synanetics.cloud/fhir/r4/StructureDefinition/MODS-CareOrganisation
    l: MODS-CareOrganisation