description: 'A profile on the DocumentReference resource with publication constraints: \n- must be status current\n- must have an identifier\n- uses attachment.url to carry the document as a contained resource' package_name: ch.fhir.ig.ch-elm derivation: constraint name: PublishDocumentReference type: DocumentReference elements: modifierExtension: {index: 0} identifier: {index: 1} status: pattern: {type: Code, value: current} index: 2 docStatus: {index: 3} date: {mustSupport: true, index: 4} relatesTo: {mustSupport: true, index: 5} securityLabel: {mustSupport: true, index: 6} content: index: 7 elements: attachment: constraint: ch-elm-urlconformstochelmbundle: {human: Must have a resolvable URL conforming to the CH-ELM Bundle., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference', severity: error, expression: 'url.exists() and url.resolve().conformsTo(''http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document'')'} index: 8 elements: language: {mustSupport: true, index: 9} url: {short: 'The document is referenced by this url, contained in the DocumentReference', index: 10} creation: {mustSupport: true, index: 11} required: [url] package_version: 1.0.0 class: profile kind: resource url: http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference base: http://hl7.org/fhir/StructureDefinition/DocumentReference version: 1.0.0 required: [identifier]