{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.clevermed.com/StructureDefinition/DocumentReference-BNet",
  "name": "DocumentReference-BNet",
  "status": "active",
  "date": "2025-03-25T15:48:13.0371153Z",
  "publisher": "Clevermed Ltd.",
  "contact": [
    {
      "name": "Clevermed BadgerNet Spine FHIR Team",
      "telecom": [
        {
          "system": "email",
          "value": "support@clevermed.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "One or more added PDF document or images associated with a BadgerNet Patient Episode.  These represet saved patient reports and ad-hoc document attachements to the patient record.",
  "copyright": "(c) Clevermed Ltd.  Usage by permission and for BadgerNet Spine Platform integration only.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DocumentReference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DocumentReference.identifier",
        "path": "DocumentReference.identifier",
        "short": "Resource identifier that links internally back to its source BadgerNet note entry",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.status",
        "path": "DocumentReference.status",
        "short": "Always uses 'current' as status",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.status.coding.system",
        "path": "DocumentReference.status.coding.system",
        "fixedUri": "http://hl7.org/fhir/ValueSet/document-reference-status"
      },
      {
        "id": "DocumentReference.status.coding.code",
        "path": "DocumentReference.status.coding.code",
        "fixedString": "current"
      },
      {
        "id": "DocumentReference.status.coding.display",
        "path": "DocumentReference.status.coding.display",
        "fixedString": "Current"
      },
      {
        "id": "DocumentReference.docStatus",
        "path": "DocumentReference.docStatus",
        "short": "Always uses 'final' as docStatus",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.type",
        "path": "DocumentReference.type",
        "short": "Always set as fied valxue.  BadgerNet currently does not store document type codes",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DocumentReference.category",
        "path": "DocumentReference.category",
        "short": "BadgerNet Code for type of document note entry in the patient record",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.date",
        "path": "DocumentReference.date",
        "short": "Time of related note in BadgerNet record or time of document list creation",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context.encounter",
        "path": "DocumentReference.context.encounter",
        "short": "A reference to the respective BadgerNet EpisodeOfCare - pregnancy, or any child episode",
        "definition": "",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://clevermed.com/fhir/"
            ]
          }
        ]
      },
      {
        "id": "DocumentReference.authenticator",
        "path": "DocumentReference.authenticator",
        "short": "If avaialble and relevent, a Practitioner reference to the user that 'authorised' the creation of the document(s)",
        "definition": "",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://clevermed.com/fhir/"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.custodian",
        "path": "DocumentReference.custodian",
        "short": "Reference link to the BadgerNet Care location that 'owns' this document as an Organisation Resource instance",
        "definition": "",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://clevermed.com/fhir/"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DocumentReference.description",
        "path": "DocumentReference.description",
        "short": "Free text comments assocaited with the document(s)",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context[1..n]",
        "path": "DocumentReference.context[1..n]",
        "definition": "A list of 1..n elements that provide a URI link to the document source and associated mime type of the document",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context[x].attachement.url",
        "path": "DocumentReference.context[x].attachement.url",
        "short": "Unique document-specific URI where you can download the binary attachement file from",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "DocumentReference.context[x].attachement.contentType",
        "path": "DocumentReference.context[x].attachement.contentType",
        "short": "the MIME type of this attachement file",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      }
    ]
  }
}