<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="lra-notification-documentreference" />
  <url value="http://phsa.ca/fhir/StructureDefinition/lra-notification-documentreference" />
  <version value="1.0.0-draft" />
  <name value="LRANotificationDocumentReference" />
  <title value="LRA Notification DocumentReference" />
  <status value="draft" />
  <experimental value="false" />
  <date value="2026-05-14" />
  <publisher value="Longitudinal Record Access (LRA)" />
  <description value="DocumentReference representing the document or letter that the notification request is about." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DocumentReference" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
  <derivation value="constraint" />
  <differential>
    <element id="DocumentReference">
      <path value="DocumentReference" />
    </element>
    <element id="DocumentReference.identifier">
      <path value="DocumentReference.identifier" />
      <short value="Document identifier" />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.identifier.system">
      <path value="DocumentReference.identifier.system" />
      <min value="1" />
      <max value="1" />
      <fixedUri value="https://healthgateway.gov.bc.ca/identifiers/document" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.identifier.value">
      <path value="DocumentReference.identifier.value" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.status">
      <path value="DocumentReference.status" />
      <min value="1" />
      <max value="1" />
      <fixedCode value="current" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.subject">
      <path value="DocumentReference.subject" />
      <short value="Patient who is the subject of the document" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://phsa.ca/fhir/StructureDefinition/lra-notification-patient" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.author">
      <path value="DocumentReference.author" />
      <short value="Program responsible for the document" />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.author.display">
      <path value="DocumentReference.author.display" />
      <short value="Program name" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.custodian">
      <path value="DocumentReference.custodian" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.custodian.display">
      <path value="DocumentReference.custodian.display" />
      <min value="1" />
      <max value="1" />
      <fixedString value="BC Cancer" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.content">
      <path value="DocumentReference.content" />
      <min value="1" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.content.attachment">
      <path value="DocumentReference.content.attachment" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="DocumentReference.content.attachment.url">
      <path value="DocumentReference.content.attachment.url" />
      <short value="Link to the document" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>