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\n- validation according to http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document' package_name: rs/ch.fhir.ig.ch derivation: constraint name: PublishDocumentReference type: DocumentReference elements: modifierExtension: {index: 0} identifier: {index: 1} status: pattern: {type: code, value: current} type: code 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: elm-1.1.0 class: profile kind: resource url: http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference base: http://hl7.org/fhir/StructureDefinition/DocumentReference version: 1.1.0 required: [identifier]