description: DCC DocumentReference for QR codes including the QR image and the serialized content. package_name: hitstdio.tw.fhir.dcc derivation: constraint name: DocumentReferenceDCC type: DocumentReference elements: category: binding: {strength: extensible, valueSet: 'http://hitstdio.ntunhs.edu.tw/fhir/ValueSet/DCC-QR-Category-Usage-ValueSet'} mustSupport: true index: 0 subject: type: Reference refers: ['http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/Patient-dcc'] index: 1 authenticator: type: Reference mustSupport: true refers: ['http://hl7.org/fhir/StructureDefinition/Organization'] index: 2 content: mustSupport: true array: true max: 3 index: 3 elements: format: binding: {strength: extensible, valueSet: 'http://hitstdio.ntunhs.edu.tw/fhir/ValueSet/DCC-QR-Format-ValueSet'} index: 4 slicing: rules: closed discriminator: - {path: format, type: value} min: null max: 3 slices: qrContent: match: format: {code: serialized, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} schema: mustSupport: true _required: true index: 5 elements: attachment: elements: contentType: {mustSupport: true, index: 6} data: {mustSupport: true, index: 7} required: [contentType, data] format: pattern: type: Coding value: {code: serialized, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} index: 8 required: [format] qrImage: match: format: {code: image, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} schema: mustSupport: true index: 9 elements: attachment: elements: contentType: {mustSupport: true, index: 10} data: {mustSupport: true, index: 11} required: [contentType, data] format: pattern: type: Coding value: {code: image, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} index: 12 required: [format] qrPDF: match: format: {code: pdf, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} schema: mustSupport: true index: 13 elements: attachment: elements: contentType: {mustSupport: true, index: 14} data: {mustSupport: true, index: 15} required: [contentType, data] format: pattern: type: Coding value: {code: pdf, system: 'http://hitstdio.ntunhs.edu.tw/fhir/CodeSystem/DCC-QR-Format-CodeSystem'} index: 16 required: [format] package_version: 0.0.1 class: profile kind: resource url: http://hitstdio.ntunhs.edu.tw/fhir/StructureDefinition/DocumentReference-dcc base: http://hl7.org/fhir/StructureDefinition/DocumentReference version: 0.0.1 required: [authenticator, category]