PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.rwi-pharma@1.0.0-ballot
    http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-documentreference
description: DocumentReference profile used in RWI Pharma regulatory submissions. Supports both embedded base64 data and referenced binaries via URL (Index Pattern). Includes support for versioning, lifecycle status, and CTD section categorization.
package_name: hl7.fhir.uv.rwi-pharma
derivation: constraint
name: RWIpharmaDocumentReference
type: DocumentReference
elements:
  description: {short: Human-readable summary of the document, mustSupport: true, index: 17}
  category:
    short: High-level categorization (e.g. CTD Module 1, Clinical Trial Data)
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/eg-ctd-module-vs'}
    mustSupport: true
    index: 13
  date: {short: Date/time this document reference was created, index: 15}
  docStatus: {short: preliminary | final | amended | appended, mustSupport: true, index: 11}
  content:
    short: Document content
    index: 19
    elements:
      attachment:
        short: Attachment with document data
        index: 20
        elements:
          contentType: {short: MIME type of the document, index: 21}
          data: {short: Embedded base64 content (optional in Index Pattern), index: 22}
          url: {short: Reference to document on FHIR server or external URL, index: 23}
          size: {short: Size of the document in bytes, mustSupport: true, index: 24}
          hash: {short: Integrity check for the document content, mustSupport: true, index: 25}
          title: {short: Human-readable title of the document, index: 26}
          creation: {short: Date/time the document was created, index: 27}
        required: [url, title, contentType, creation]
  type:
    short: 'Document type: an RWI-pharma input/output type or a CTD section code (e.g. 3.2.S.1.1)'
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/rwipharma-document-type-vs'}
    mustSupport: true
    index: 12
  status: {index: 10}
  identifier:
    short: Document Set Identifier and Document Version Identifier
    mustSupport: true
    array: true
    min: 2
    max: 2
    index: 0
    slicing:
      rules: open
      description: slices illustrate the requirement to have one document set identifier and one document version identifier
      discriminator:
      - {path: type, type: value}
      min: 2
      max: 2
      slices:
        docSetIdentifier:
          match:
            type:
              coding:
              - {code: docsetid, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: Document Set Identifier}
          schema:
            short: Document Set Identifier
            constraint:
              identifier-is-a-uuid: {human: 'Identifier value must be a urn:uuid', source: 'http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-documentreference', severity: error, expression: 'value.matches(''^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'')'}
            mustSupport: true
            _required: true
            index: 1
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: docsetid, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: Document Set Identifier}
                index: 2
              system: {index: 3}
              value: {index: 4}
            required: [value, type, system]
        docVersionNumberIdentifier:
          match:
            type:
              coding:
              - {code: docverid, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: Document Version Number Identifier}
          schema:
            short: Document Version Number Identifier
            constraint:
              identifier-is-a-uuid: {human: 'Identifier value must be a urn:uuid', source: 'http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-documentreference', severity: error, expression: 'value.matches(''^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'')'}
            mustSupport: true
            _required: true
            index: 5
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: docverid, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: Document Version Number Identifier}
                index: 6
              system: {index: 7}
              value: {index: 8}
            required: [value, type, system]
  relatesTo: {mustSupport: true, index: 16}
  version: {short: 'Business version of the document (e.g. 1.0, 2.1)', mustSupport: true, index: 9}
  securityLabel: {short: Confidentiality/Security labels, mustSupport: true, index: 18}
  subject: {short: 'Used to link to specific products, such as a `MedicinalProductDefinition`', mustSupport: true, index: 14}
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-documentreference
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 1.0.0-ballot
required: [type, date]