description: This profile defines how to represent a test result certificate in FHIR by using a Composition resource package_name: hitstdio.tw.fhir.dcc derivation: constraint name: CompositionTest type: Composition elements: date: {mustSupport: true, index: 7} section: short: Sections composing the Digital COVID-19 Certificate mustSupport: true index: 13 slicing: rules: open ordered: false discriminator: - {path: code, type: pattern} min: 1 slices: sectionResults: match: code: coding: - {code: 30954-2, system: 'http://loinc.org'} schema: short: Results Section _required: true index: 14 elements: title: {mustSupport: true, index: 15} code: type: CodeableConcept mustSupport: true pattern: type: CodeableConcept value: coding: - {code: 30954-2, system: 'http://loinc.org'} index: 16 text: {mustSupport: true, index: 17} entry: short: Test result relevant for the purpose of this certificate mustSupport: true array: true min: 2 index: 18 slicing: rules: open discriminator: - {path: $this.resolve(), type: profile} - {path: $this.resolve(), type: type} min: 2 slices: observation: match: {} schema: type: Reference mustSupport: true refers: ['http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Observation-dcc'] _required: true index: 19 min: 1 max: 1 documentReference: match: {} schema: type: Reference refers: ['http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/DocumentReference-dcc'] _required: true index: 20 min: 1 max: 1 emptyReason: {mustSupport: false, index: 21} section: {mustSupport: false, index: 22} required: [text, title, code] attester: mustSupport: true index: 10 elements: time: {mustSupport: true, index: 11} party: {mustSupport: true, index: 12} required: [party] type: {type: CodeableConcept, short: Kind of composition ("Digital COVID-19 Certificate"), mustSupport: true, index: 4} title: {short: Digital COVID-19 Certificate, mustSupport: true, index: 9} author: {short: Who and/or what authored the Digital COVID-19 Certificate, mustSupport: true, index: 8} status: {mustSupport: true, index: 3} identifier: mustSupport: true index: 1 elements: period: {mustSupport: true, index: 2} subject: type: Reference mustSupport: true refers: ['http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dcc'] index: 5 elements: reference: {mustSupport: true, index: 6} required: [reference] text: {mustSupport: true, index: 0} package_version: 0.0.1 class: profile kind: resource url: http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Composition-test base: http://hl7.org/fhir/StructureDefinition/clinicaldocument version: 0.0.1 required: [attester, section, identifier, subject]