CH ELM (R4)
1.16.0 - ci-build Switzerland flag

CH ELM (R4), published by Federal Office of Public Health FOPH. This guide is not an authorized publication; it is the continuous build for version 1.16.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/ahdis/ch-elm/ and changes regularly. See the Directory of published versions

Extension: CH ELM Extension: HIV code

Official URL: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code Version: 1.16.0
Active as of 2026-10-22 Computable Name: ChElmExtHivCode

Copyright/Legal: CC0-1.0

This CH ELM extension enables to provide the HIV Code.

Context of Use

    This extension may be used on the following element(s)

Usage info

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Extension Content

Description Differentials, Snapshots, and other representations.

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension C 0..* Extension CH ELM Extension: HIV Code
Constraints: ch-elm-hiv-check
Extension.extension 0..0 Extension
Extension.url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
Extension.value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
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$')
NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension C 0..* Extension CH ELM Extension: HIV Code
Constraints: ch-elm-hiv-check
Extension.id 0..1 string Unique id for inter-element referencing
Extension.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Extension.url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
Extension.value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
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()

This structure is derived from Extension

Summary

Simple Extension with the type string: This CH ELM extension enables to provide the HIV Code.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension C 0..* Extension CH ELM Extension: HIV Code
Constraints: ch-elm-hiv-check
Extension.extension 0..0 Extension
Extension.url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
Extension.value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
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$')

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: doco
Extension C 0..* Extension CH ELM Extension: HIV Code
Constraints: ch-elm-hiv-check
Extension.id 0..1 string Unique id for inter-element referencing
Extension.extension 0..0 Extension
Slice: Unordered, Open by value:url

Slicing Note: The rules on this element (including its children) apply to all the slices, but are not repeated in them
Extension.url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
Extension.value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format

Constraints

Id Grade Path(s) Description Expression
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()

This structure is derived from Extension

Summary

Simple Extension with the type string: This CH ELM extension enables to provide the HIV Code.

 

Other representations of profile: CSV, Excel, Schematron