{
  "resourceType": "StructureDefinition",
  "id": "profile-Reference-group-no-patient",
  "url": "https://bpcs.exchange/fhir/StructureDefinition/profile-Reference-group-no-patient",
  "name": "ReferenceGroupNOPatient",
  "title": "Group (not Patient) Reference",
  "status": "active",
  "experimental": false,
  "description": "A reference to a Group where a reference to a Patient would normally be required",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "BPCS",
      "name": "Internal BPCS API"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Reference",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Reference",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Reference.extension",
        "path": "Reference.extension",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Reference.extension:family",
        "path": "Reference.extension",
        "sliceName": "family",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://bpcs.exchange/fhir/StructureDefinition/ext-Resource-Subject"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Reference.reference",
        "path": "Reference.reference",
        "max": "0",
        "mapping": [
          {
            "identity": "BPCS",
            "map": "BatchRecordDTO.odbNum"
          }
        ]
      },
      {
        "id": "Reference.display",
        "path": "Reference.display",
        "comment": "This conveys the id of the group being referenced to satisfy best-practice",
        "min": 1,
        "mustSupport": true
      }
    ]
  }
}