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