CH ELM (R4)
1.9.0 - release 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.9.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.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):

Usage info

Usage:

Formal Views of Extension Content

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

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 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.
... extension 0..0
... url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
... value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 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.
... id 0..1 string Unique id for inter-element referencing
... extension 0..0
... url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension of type string: This CH ELM extension enables to proivde the HIV Code.

Differential View

This structure is derived from Extension

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 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.
... extension 0..0
... url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"
... value[x] 1..1 string Name of the HIV code
Max Length:2

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Extension 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.
... id 0..1 string Unique id for inter-element referencing
... extension 0..0
... url 1..1 uri "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-ext-hiv-code"

doco Documentation for this format

This structure is derived from Extension

Summary

Simple Extension of type string: This CH ELM extension enables to proivde the HIV Code.

 

Other representations of profile: CSV, Excel, Schematron

Constraints

IdGradePath(s)DetailsRequirements
ch-elm-hiv-checkerrorExtensioninvalid 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-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()