MedNet interface implementation guide
0.15.0 - CI Build

MedNet interface implementation guide - Local Development build (v0.15.0). See the Directory of published versions

Resource Profile: MedNet Interface (MNI) - RelatedPerson

Official URL: https://mednet.swiss/fhir/StructureDefinition/mni-relatedPerson Version: 0.15.0
Active as of 2020-11-06 Computable Name: MNIRelatedPerson

Copyright/Legal: novcom AG

MedNet Interface (MNI) - RelatedPerson Profile

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from RelatedPerson

Summary

Mandatory: 0 element (4 nested mandatory elements)
Must-Support: 20 elements
Fixed Value: 3 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element RelatedPerson.relationship is sliced based on the values of value:coding.system, value:coding.code

This structure is derived from RelatedPerson

NameFlagsCard.TypeDescription & Constraintsdoco
.. RelatedPerson 0..*RelatedPersonMedNet Interface (MNI) - RelatedPerson
... id S0..1stringThe id is unique within the space of all resources of the same type on the same server It can be any combination of upper- or lower-case ASCII letters 'A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.' with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.)
... active S0..1booleanWhether this related person's record is in active use
Fixed Value: true
... patient S1..1Reference(MedNet Interface (MNI) - Patient)Link to the Patient
.... relationship:KIND S0..1CodeableConceptKind of relation ship, for example Emergency contact, Employer
..... coding S0..*CodingCode defined by a terminology system
...... system S1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v2-0131
...... code S1..1codeC (Emergency Contact) | E (Employer) | F (Federal Agency) | I (Insurance Company) | N (Next-of-Kin) | S (State Agency) | U (Unknown)
...... display S0..1stringRepresentation defined by the system
..... text S0..1stringIf the relationship can not be coded, it can be described in plain text in this field
.... relationship:FamilyMember S0..1CodeableConceptFamilyMember relation ship, for example sister
..... coding S0..*CodingCode defined by a terminology system
...... system S1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-RoleCode
...... code S1..1codeCHILD (child) | DAU (natural daugher) | SON (natural son) | FTH (father) | MTH (mother) | ...
...... display S0..1stringRepresentation defined by the system
..... text S0..1stringIf the relationship can not be coded, it can be described in plain text in this field
... name S0..*MNIHumanNameName of a human - parts and usage
... telecom S0..*MNIContactPointDetails of a Technology mediated contact point (phone, fax, email, etc.)
... gender S0..1codemale | female | other | unknown
... address S0..*MNIAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. RelatedPerson 0..*RelatedPersonMedNet Interface (MNI) - RelatedPerson
... id SΣ0..1stringThe id is unique within the space of all resources of the same type on the same server It can be any combination of upper- or lower-case ASCII letters 'A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.' with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.)
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierA human identifier for this person
... active ?!SΣ0..1booleanWhether this related person's record is in active use
Fixed Value: true
... patient SΣ1..1Reference(MedNet Interface (MNI) - Patient)Link to the Patient
... Slices for relationship SΣ0..*CodeableConceptThe nature of the relationship
Slice: Unordered, Open by value:coding.system, value:coding.code
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


.... relationship:KIND SΣ0..1CodeableConceptKind of relation ship, for example Emergency contact, Employer
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ0..*CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v2-0131
...... version Σ0..1stringVersion of the system - if relevant
...... code SΣ1..1codeC (Emergency Contact) | E (Employer) | F (Federal Agency) | I (Insurance Company) | N (Next-of-Kin) | S (State Agency) | U (Unknown)
...... display SΣ0..1stringRepresentation defined by the system
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text SΣ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
.... relationship:FamilyMember SΣ0..1CodeableConceptFamilyMember relation ship, for example sister
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ0..*CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-RoleCode
...... version Σ0..1stringVersion of the system - if relevant
...... code SΣ1..1codeCHILD (child) | DAU (natural daugher) | SON (natural son) | FTH (father) | MTH (mother) | ...
...... display SΣ0..1stringRepresentation defined by the system
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text SΣ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
... name SI0..*MNIHumanNameName of a human - parts and usage
... telecom SI0..*MNIContactPointDetails of a Technology mediated contact point (phone, fax, email, etc.)
... gender SΣ0..1codemale | female | other | unknown
Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.

... birthDate Σ0..1dateThe date on which the related person was born
... address S0..*MNIAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... photo 0..*AttachmentImage of the person
... period 0..1PeriodPeriod of time that this relationship is considered valid
... communication 0..*BackboneElementA language which may be used to communicate with about the patient's health
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... language 1..1CodeableConceptThe language which can be used to communicate with the patient about his or her health
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
.... preferred 0..1booleanLanguage preference indicator

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. RelatedPerson 0..*RelatedPersonMedNet Interface (MNI) - RelatedPerson
... id Σ0..1stringThe id is unique within the space of all resources of the same type on the same server It can be any combination of upper- or lower-case ASCII letters 'A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.' with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.)
... active ?!Σ0..1booleanWhether this related person's record is in active use
Fixed Value: true
... patient Σ1..1Reference(MedNet Interface (MNI) - Patient)Link to the Patient
.... relationship:KIND Σ0..1CodeableConceptKind of relation ship, for example Emergency contact, Employer
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... coding Σ0..*CodingCode defined by a terminology system
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v2-0131
...... code Σ1..1codeC (Emergency Contact) | E (Employer) | F (Federal Agency) | I (Insurance Company) | N (Next-of-Kin) | S (State Agency) | U (Unknown)
...... display Σ0..1stringRepresentation defined by the system
..... text Σ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
.... relationship:FamilyMember Σ0..1CodeableConceptFamilyMember relation ship, for example sister
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... coding Σ0..*CodingCode defined by a terminology system
...... system Σ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-RoleCode
...... code Σ1..1codeCHILD (child) | DAU (natural daugher) | SON (natural son) | FTH (father) | MTH (mother) | ...
...... display Σ0..1stringRepresentation defined by the system
..... text Σ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
... name I0..*MNIHumanNameName of a human - parts and usage
... telecom I0..*MNIContactPointDetails of a Technology mediated contact point (phone, fax, email, etc.)
... gender Σ0..1codemale | female | other | unknown
Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.

... address 0..*MNIAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)

doco Documentation for this format

This structure is derived from RelatedPerson

Summary

Mandatory: 0 element (4 nested mandatory elements)
Must-Support: 20 elements
Fixed Value: 3 elements

Structures

This structure refers to these other structures:

Slices

This structure defines the following Slices:

  • The element RelatedPerson.relationship is sliced based on the values of value:coding.system, value:coding.code

Differential View

This structure is derived from RelatedPerson

NameFlagsCard.TypeDescription & Constraintsdoco
.. RelatedPerson 0..*RelatedPersonMedNet Interface (MNI) - RelatedPerson
... id S0..1stringThe id is unique within the space of all resources of the same type on the same server It can be any combination of upper- or lower-case ASCII letters 'A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.' with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.)
... active S0..1booleanWhether this related person's record is in active use
Fixed Value: true
... patient S1..1Reference(MedNet Interface (MNI) - Patient)Link to the Patient
.... relationship:KIND S0..1CodeableConceptKind of relation ship, for example Emergency contact, Employer
..... coding S0..*CodingCode defined by a terminology system
...... system S1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v2-0131
...... code S1..1codeC (Emergency Contact) | E (Employer) | F (Federal Agency) | I (Insurance Company) | N (Next-of-Kin) | S (State Agency) | U (Unknown)
...... display S0..1stringRepresentation defined by the system
..... text S0..1stringIf the relationship can not be coded, it can be described in plain text in this field
.... relationship:FamilyMember S0..1CodeableConceptFamilyMember relation ship, for example sister
..... coding S0..*CodingCode defined by a terminology system
...... system S1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-RoleCode
...... code S1..1codeCHILD (child) | DAU (natural daugher) | SON (natural son) | FTH (father) | MTH (mother) | ...
...... display S0..1stringRepresentation defined by the system
..... text S0..1stringIf the relationship can not be coded, it can be described in plain text in this field
... name S0..*MNIHumanNameName of a human - parts and usage
... telecom S0..*MNIContactPointDetails of a Technology mediated contact point (phone, fax, email, etc.)
... gender S0..1codemale | female | other | unknown
... address S0..*MNIAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. RelatedPerson 0..*RelatedPersonMedNet Interface (MNI) - RelatedPerson
... id SΣ0..1stringThe id is unique within the space of all resources of the same type on the same server It can be any combination of upper- or lower-case ASCII letters 'A'..'Z', and 'a'..'z', numerals ('0'..'9'), '-' and '.' with a length limit of 64 characters. (This might be an integer, an un-prefixed OID, UUID or any other identifier pattern that meets these constraints.)
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierA human identifier for this person
... active ?!SΣ0..1booleanWhether this related person's record is in active use
Fixed Value: true
... patient SΣ1..1Reference(MedNet Interface (MNI) - Patient)Link to the Patient
... Slices for relationship SΣ0..*CodeableConceptThe nature of the relationship
Slice: Unordered, Open by value:coding.system, value:coding.code
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


.... relationship:KIND SΣ0..1CodeableConceptKind of relation ship, for example Emergency contact, Employer
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ0..*CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v2-0131
...... version Σ0..1stringVersion of the system - if relevant
...... code SΣ1..1codeC (Emergency Contact) | E (Employer) | F (Federal Agency) | I (Insurance Company) | N (Next-of-Kin) | S (State Agency) | U (Unknown)
...... display SΣ0..1stringRepresentation defined by the system
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text SΣ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
.... relationship:FamilyMember SΣ0..1CodeableConceptFamilyMember relation ship, for example sister
Binding: PatientRelationshipType (preferred): The nature of the relationship between a patient and the related person.


..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
..... coding SΣ0..*CodingCode defined by a terminology system
...... id 0..1stringUnique id for inter-element referencing
...... extension 0..*ExtensionAdditional content defined by implementations
Slice: Unordered, Open by value:url
...... system SΣ1..1uriIdentity of the terminology system
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-RoleCode
...... version Σ0..1stringVersion of the system - if relevant
...... code SΣ1..1codeCHILD (child) | DAU (natural daugher) | SON (natural son) | FTH (father) | MTH (mother) | ...
...... display SΣ0..1stringRepresentation defined by the system
...... userSelected Σ0..1booleanIf this coding was chosen directly by the user
..... text SΣ0..1stringIf the relationship can not be coded, it can be described in plain text in this field
... name SI0..*MNIHumanNameName of a human - parts and usage
... telecom SI0..*MNIContactPointDetails of a Technology mediated contact point (phone, fax, email, etc.)
... gender SΣ0..1codemale | female | other | unknown
Binding: AdministrativeGender (required): The gender of a person used for administrative purposes.

... birthDate Σ0..1dateThe date on which the related person was born
... address S0..*MNIAddressAn address expressed using postal conventions (as opposed to GPS or other location definition formats)
... photo 0..*AttachmentImage of the person
... period 0..1PeriodPeriod of time that this relationship is considered valid
... communication 0..*BackboneElementA language which may be used to communicate with about the patient's health
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... language 1..1CodeableConceptThe language which can be used to communicate with the patient about his or her health
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
.... preferred 0..1booleanLanguage preference indicator

doco Documentation for this format

 

Other representations of profile: CSV, Excel, Schematron

Terminology Bindings

PathConformanceValueSet
RelatedPerson.languagepreferredCommonLanguages
Max Binding: AllLanguages
RelatedPerson.relationshippreferredPatientRelationshipType
RelatedPerson.relationship:KINDpreferredPatientRelationshipType
RelatedPerson.relationship:FamilyMemberpreferredPatientRelationshipType
RelatedPerson.genderrequiredAdministrativeGender
RelatedPerson.communication.languagepreferredCommonLanguages
Max Binding: AllLanguages

Constraints

IdGradePathDetailsRequirements
dom-2errorRelatedPersonIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorRelatedPersonIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorRelatedPersonIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorRelatedPersonIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6Best PracticeRelatedPersonA resource should have narrative for robust management
: text.`div`.exists()
ele-1errorRelatedPerson.metaAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.implicitRulesAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.languageAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.identifierAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.activeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.patientAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationshipAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KINDAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.relationship:KIND.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.relationship:KIND.codingAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.coding.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.relationship:KIND.coding.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.relationship:KIND.coding.systemAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.coding.versionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.coding.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.coding.displayAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.coding.userSelectedAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:KIND.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMemberAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.relationship:FamilyMember.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.relationship:FamilyMember.codingAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.coding.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.relationship:FamilyMember.coding.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.relationship:FamilyMember.coding.systemAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.coding.versionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.coding.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.coding.displayAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.coding.userSelectedAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.relationship:FamilyMember.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.nameAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ch-core-hm-1errorRelatedPerson.nameif officalName with eCH-011 Extension is specified, it can only be put on a name where use attribute is official
: family.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name' and valueCode='officialName').empty() or (family.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name' and valueCode='officialName').exists() and use='official')
ch-core-hm-2errorRelatedPerson.nameif orginalName with eCH-011 Extension is specified, it can only be put on a name where use attribute is maiden
: family.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name' and valueCode='originalName').empty() or ((family.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name' and valueCode='originalName').exists() and use='maiden'))
ch-core-hm-3errorRelatedPerson.namech-ext-ech-11-name can only be put on a family name
: descendants().extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name').count()=family.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-name').count()
ch-core-hm-4errorRelatedPerson.namech-ext-ech-11-firstname can only be put on a given name
: descendants().extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-firstname').count()=given.extension.where(url='http://fhir.ch/ig/ch-core/StructureDefinition/ch-ext-ech-11-firstname').count()
cpt-2errorRelatedPerson.telecomA system is required if a value is provided.
: value.empty() or system.exists()
ele-1errorRelatedPerson.telecomAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.genderAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.birthDateAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.addressAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.photoAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.periodAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.communicationAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.communication.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.communication.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.communication.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1errorRelatedPerson.communication.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1errorRelatedPerson.communication.languageAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1errorRelatedPerson.communication.preferredAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())