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 Bundle: CH EKM $extract template: Mpox document Bundle

Document Details

Document Subject

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


Contact Detailnull null null (home)
Individual Gender Identity:
  • value:
Patient Citizenship:
  • code:

Document Content

Diagnosis section

Social history section


Additional Resources Included in Document


Entry 2 - fullUrl = http://test.fhir.ch/r4/Patient/ExtractedPatient

Resource Patient:

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


Contact Detailnull null null (home)
Individual Gender Identity:
  • value:
Patient Citizenship:
  • code:

Entry 3 - fullUrl = http://test.fhir.ch/r4/Condition/ExtractedConditionMpox

Resource Condition:

category: Encounter Diagnosis

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

onset: SDC Template Extract Extension (carrier): , Extract Template - Extract value: iif(%resource.descendants().where(linkId='manifestationBeginUnknown').answer.value.first() = true, {}, %resource.descendants().where(linkId='manifestationBeginDate').answer.value.first())

Evidences

-Extension
*

Entry 4 - fullUrl = http://test.fhir.ch/r4/Observation/ExtractedExposureMpox

Resource Observation:

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


Entry 5 - fullUrl = http://test.fhir.ch/r4/PractitionerRole/ExtractedTreatingPractitionerRole

Resource PractitionerRole:

practitioner: Practitioner null null

organization: Organization null


Entry 6 - fullUrl = http://test.fhir.ch/r4/Practitioner/ExtractedTreatingPractitioner

Resource Practitioner:

identifier: GLN/?ngen-9?

name: null null

telecom: ph: -unknown-,

address: null null null (work)


Entry 7 - fullUrl = http://test.fhir.ch/r4/Organization/ExtractedTreatingOrganization

Resource Organization:

SDC Template Extract Extension (carrier)

  • http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext: %resource.descendants().where(linkId='orgDepartment').answer.value
  • http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue: %factory.Extension('http://fhir.ch/ig/ch-ekm/StructureDefinition/ch-ekm-ext-department', %resource.descendants().where(linkId='orgDepartment').answer.value.first())

identifier: GLN/?ngen-9?, BER/?ngen-9?

name: Extract Template - Extract value: %resource.descendants().where(linkId='orgName').answer.value.first()

contact

telecom: ph: -unknown-,

address: null null null