CH ELM (R4)
1.9.0 - release
This page is part of the Observations of notifiable communicable infectious diseases (v1.9.0: Release) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
Official URL: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code | Version: 1.9.0 | |||
Active as of 2025-03-18 | Computable Name: ChElmExtHivCode | |||
Copyright/Legal: CC0-1.0 |
This CH ELM extension enables to proivde the HIV Code.
Context of Use
This extension may be used on the following element(s):
HumanName
Usage info
Usage:
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Extension
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code ch-elm-hiv-check: invalid hiv code: 1) either start with a letter or the number 0, 2) be a maximum of 2 characters long, 3) have a number in the last place 4) if it starts with 0, it must either consist only of 0 or be followed by a 1. |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
1..1 | uri | "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code" | |
![]() ![]() ![]() |
1..1 | string | Name of the HIV code Max Length:2 | |
![]() |
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code ch-elm-hiv-check: invalid hiv code: 1) either start with a letter or the number 0, 2) be a maximum of 2 characters long, 3) have a number in the last place 4) if it starts with 0, it must either consist only of 0 or be followed by a 1. |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
1..1 | uri | "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code" | |
![]() ![]() ![]() |
1..1 | string | Name of the HIV code Max Length:2 | |
![]() |
This structure is derived from Extension
Differential View
This structure is derived from Extension
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code ch-elm-hiv-check: invalid hiv code: 1) either start with a letter or the number 0, 2) be a maximum of 2 characters long, 3) have a number in the last place 4) if it starts with 0, it must either consist only of 0 or be followed by a 1. |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
1..1 | uri | "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code" | |
![]() ![]() ![]() |
1..1 | string | Name of the HIV code Max Length:2 | |
![]() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code ch-elm-hiv-check: invalid hiv code: 1) either start with a letter or the number 0, 2) be a maximum of 2 characters long, 3) have a number in the last place 4) if it starts with 0, it must either consist only of 0 or be followed by a 1. |
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() |
0..0 | |||
![]() ![]() ![]() |
1..1 | uri | "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code" | |
![]() ![]() ![]() |
1..1 | string | Name of the HIV code Max Length:2 | |
![]() |
This structure is derived from Extension
Other representations of profile: CSV, Excel, Schematron
Id | Grade | Path(s) | Details | Requirements |
ch-elm-hiv-check | error | Extension | invalid hiv code: 1) either start with a letter or the number 0, 2) be a maximum of 2 characters long, 3) have a number in the last place 4) if it starts with 0, it must either consist only of 0 or be followed by a 1. : value.matches('^[A-Za-z][0-9]$|^0$|^01$') | |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |