{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.clevermed.com/StructureDefinition/ServiceRequest-BNet-Referral",
  "name": "ServiceRequest-BNet-Referral",
  "status": "active",
  "date": "2025-07-30T15:39:36.5152505Z",
  "publisher": "Clevermed Ltd.",
  "contact": [
    {
      "name": "Clevermed BadgerNet Spine FHIR Team",
      "telecom": [
        {
          "system": "email",
          "value": "support@clevermed.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Referral details where a referral was made during labour and birth or for a newborn.",
  "copyright": "(c) Clevermed Ltd.  Usage by permission and for BadgerNet Spine Platform integration only.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ServiceRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "ServiceRequest.id",
        "path": "ServiceRequest.id",
        "short": "Unique resource identifier",
        "definition": "",
        "min": 1,
        "max": "1"
      },
      {
        "id": "ServiceRequest.status",
        "path": "ServiceRequest.status",
        "short": "Status of the referral",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category",
        "path": "ServiceRequest.category",
        "short": "Category to define service request as a referral",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.category.coding.system",
        "path": "ServiceRequest.category.coding.system",
        "fixedUri": "SNOMED"
      },
      {
        "id": "ServiceRequest.category.coding.code",
        "path": "ServiceRequest.category.coding.code",
        "fixedString": "3457005"
      },
      {
        "id": "ServiceRequest.category.coding.display",
        "path": "ServiceRequest.category.coding.display",
        "fixedString": "Patient referral"
      },
      {
        "id": "ServiceRequest.intent",
        "path": "ServiceRequest.intent",
        "short": "Intent of the referral",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.subject",
        "path": "ServiceRequest.subject",
        "short": "Reference to the intended patient. This can either be the child or pregnant person",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.occurrenceDateTime",
        "path": "ServiceRequest.occurrenceDateTime",
        "short": "Date and time for when the referal was made",
        "definition": "",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.code",
        "path": "ServiceRequest.code.coding.code",
        "short": "Code which defines what type of referal was made.",
        "definition": "Referral codes in NZ are defined in: https://www.health.govt.nz/system/files/documents/publications/referral-glines-jan12.pdf",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "ServiceRequest.code.coding.code.coding.system",
        "path": "ServiceRequest.code.coding.code.coding.system",
        "fixedUri": "fhir.clevermed.com/fhir/valueset-ReferralReason"
      },
      {
        "id": "ServiceRequest.code.coding.code.coding.code",
        "path": "ServiceRequest.code.coding.code.coding.code",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Reasons for referral",
          "valueSet": "https://simplifier.net/badgernet/ValueSet-BNet-Preg-ReferralReason"
        }
      }
    ]
  }
}