CH EKM (R4)
0.0.1 - ci-build Switzerland flag

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

Example Observation: ExtractedExposureMpox

SDC Template Extract Extension (carrier)

  • http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext: iif(%resource.descendants().where(linkId='exposureWhereChLi').answer.value.exists() or %resource.descendants().where(linkId='exposureWhereCountry').answer.value.exists() or %resource.descendants().where(linkId='exposureWherePreciseLocation').answer.value.exists() or %resource.descendants().where(linkId='exposureWhereUnknown').answer.value.exists(), true, {})
  • http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue: %resource.defineVariable('addr', iif(%resource.descendants().where(linkId='exposureWhereChLi').answer.value.exists() or %resource.descendants().where(linkId='exposureWhereCountry').answer.value.exists(), %factory.withProperty(%factory.Address({}, %resource.descendants().where(linkId='exposureWherePreciseLocation').answer.value.first()), 'country', %factory.string(iif(%resource.descendants().where(linkId='exposureWhereChLi').answer.value.exists(), 'CH', %resource.descendants().where(linkId='exposureWhereCountry').answer.value.ofType(Coding).code.first()), %factory.Extension('http://hl7.org/fhir/StructureDefinition/iso21090-codedString', iif(%resource.descendants().where(linkId='exposureWhereChLi').answer.value.exists(), %factory.Coding('urn:iso:std:iso:3166', 'CH', 'Switzerland'), %resource.descendants().where(linkId='exposureWhereCountry').answer.value.ofType(Coding).first())))), %factory.Address({}, %resource.descendants().where(linkId='exposureWherePreciseLocation').answer.value.first()))).select(%factory.Extension('http://fhir.ch/ig/ch-ekm/StructureDefinition/ch-ekm-ext-exposure-address', iif(%resource.descendants().where(linkId='exposureWhereUnknown').answer.value.exists(), %factory.withExtension(%addr, 'http://hl7.org/fhir/StructureDefinition/data-absent-reason', %factory.code('asked-unknown')), %addr)))

status: Final

category: acquisition exposure

code: Exposure Agent

subject: Y X Unknown, DoB: ( urn:oid:2.16.756.5.32#AHVN13#?ngen-9?)

effective: SDC Template Extract Extension (carrier): , Extract Template - Extract value: %resource.descendants().where(linkId='exposureWhenDate').answer.value.first()

component

Extract Template - Context: %resource.descendants().where(linkId='exposureHowSexualContactPartner').answer.value

code: Sexual contact partner

value: Unknown

component

Extract Template - Context: %resource.descendants().where(linkId='exposureHowRelationshipType').answer.value

code: Sexual relationship details (observable entity)

value: Steady partner

component

Extract Template - Context: %resource.descendants().where(linkId='exposureHowOtherTransmission').answer.value

code: Other (qualifier value)

value: Extract Template - Extract value: $this

component

Extract Template - Context: %resource.descendants().where(linkId='exposureHowUnknown').answer.value.where($this = true)

code: Mode of transmission (observable entity)

value: Unknown (qualifier value)

component

Extract Template - Context: iif(%resource.descendants().where(linkId='exposureHowUnknown').answer.value = true, {}, %resource.descendants().where(linkId='exposureHowOtherTransmission').answer.value)

code:

value:

component

Extract Template - Context: iif(%resource.descendants().where(linkId='exposureHowUnknown').answer.value = true, {}, iif(%resource.descendants().where(linkId='exposureHowOtherTransmission').answer.value.exists(), {}, %resource.descendants().where(linkId='exposureHowSexualContactPartner').answer.value))

code:

value:

component

Extract Template - Context: %resource.descendants().where(linkId='exposureWhenLastEntryDate').answer.value

code: Date of return from travel

value: Extract Template - Extract value: $this