PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.7.0
    http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference
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: ch.fhir.ig.ch-elm
derivation: constraint
name: PublishDocumentReference
type: DocumentReference
elements:
  date: {mustSupport: true, index: 6}
  docStatus: {index: 5}
  content:
    index: 9
    elements:
      attachment:
        constraint:
          ch-elm-resolveableurl: {human: Must resolve to the contained bundle., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference', severity: error, expression: url.exists() and url.resolve()}
        index: 10
        elements:
          language: {mustSupport: true, index: 11}
          url: {short: 'The document is referenced by this url, contained in the DocumentReference', index: 12}
          creation: {mustSupport: true, index: 13}
        required: [url]
  contained:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: profile}
      min: 1
      slices:
        document:
          match: {}
          schema: {type: Resource, mustSupport: true, _required: true, index: 1}
          min: 1
          max: 1
  status:
    pattern: {type: Code, value: current}
    index: 4
  identifier: {index: 3}
  relatesTo: {mustSupport: true, index: 7}
  securityLabel: {mustSupport: true, index: 8}
  modifierExtension: {index: 2}
package_version: 1.7.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-elm/StructureDefinition/PublishDocumentReference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.7.0
required: [identifier, contained]