CH ELM (R4)
1.11.0 - release
This page is part of the Observations of notifiable communicable infectious diseases (v1.11.0: Release) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 1.13.0. 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.11.0 | |||
| Active as of 2025-08-13 | 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
Usages:
You can also check for usages in the FHIR IG Statistics
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 Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code Constraints: ch-elm-hiv-check |
![]() ![]() |
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 | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code Constraints: ch-elm-hiv-check |
![]() ![]() |
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 | |
Documentation for this format | ||||
This structure is derived from Extension
Differential View
This structure is derived from Extension
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code Constraints: ch-elm-hiv-check |
![]() ![]() |
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 | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Extension | CH ELM Extension: HIV Code Constraints: ch-elm-hiv-check |
![]() ![]() |
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 | |
Documentation for this format | ||||
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() |