{
  "resourceType": "StructureDefinition",
  "url": "https://nijz.si/rdsp/fhir/StructureDefinition/HomeCareNursePatientGroupSI",
  "name": "HomeCareNursePatientGroupSI",
  "status": "draft",
  "fhirVersion": "4.1.0",
  "kind": "resource",
  "abstract": false,
  "type": "Group",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Group",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Group.identifier",
        "path": "Group.identifier",
        "short": "HomeCareNurseGroupID"
      },
      {
        "id": "Group.identifier.system",
        "path": "Group.identifier.system",
        "patternUri": "urn:crpp:homecarenursegroupid"
      },
      {
        "id": "Group.identifier.value",
        "path": "Group.identifier.value",
        "example": [
          {
            "label": "generic",
            "valueString": "<orgID>:<practitionerID>:<uniquenumber>"
          },
          {
            "label": "sample",
            "valueString": "24358:74612:00001"
          }
        ]
      },
      {
        "id": "Group.type",
        "path": "Group.type",
        "patternCode": "person"
      },
      {
        "id": "Group.actual",
        "path": "Group.actual",
        "example": [
          {
            "label": "example",
            "valueBoolean": true
          }
        ]
      },
      {
        "id": "Group.code.coding",
        "path": "Group.code.coding",
        "example": [
          {
            "label": "patronaža",
            "valueCoding": {
              "system": "urn:crpp:groupCode",
              "code": "PatientsPerHomeCareNurse"
            }
          }
        ]
      },
      {
        "id": "Group.name",
        "path": "Group.name",
        "example": [
          {
            "label": "example",
            "valueString": "tbd"
          }
        ]
      },
      {
        "id": "Group.managingEntity",
        "path": "Group.managingEntity",
        "example": [
          {
            "label": "sample",
            "valueReference": {
              "reference": "H24358",
              "type": "Organization"
            }
          }
        ]
      },
      {
        "id": "Group.characteristic.code.coding",
        "path": "Group.characteristic.code.coding",
        "example": [
          {
            "label": "Patronaža - rajon",
            "valueCoding": {
              "system": "urn:nijz:crpp:characteristicscode",
              "code": "attributed-to"
            }
          }
        ]
      },
      {
        "id": "Group.characteristic.code.text",
        "path": "Group.characteristic.code.text",
        "example": [
          {
            "label": "patronaža",
            "valueString": "Pacienti uvrščeni v rajon patronažne sestre"
          }
        ]
      },
      {
        "id": "Group.characteristic.value[x]",
        "path": "Group.characteristic.value[x]",
        "type": [
          {
            "code": "Reference"
          }
        ],
        "example": [
          {
            "label": "Patronaža 1",
            "valueReference": {
              "reference": "xxxxxxx",
              "type": "PractitionerRole"
            }
          }
        ]
      },
      {
        "id": "Group.characteristic.exclude",
        "path": "Group.characteristic.exclude",
        "example": [
          {
            "label": "sample",
            "valueBoolean": false
          }
        ]
      },
      {
        "id": "Group.member.entity",
        "path": "Group.member.entity",
        "example": [
          {
            "label": "Patient",
            "valueReference": {
              "reference": "Patient/1234",
              "type": "Patient",
              "display": "Patient name"
            }
          }
        ]
      },
      {
        "id": "Group.member.entity.identifier.system",
        "path": "Group.member.entity.identifier.system",
        "example": [
          {
            "label": "KZZ",
            "valueUri": "urn:zzzs:kzz"
          }
        ]
      },
      {
        "id": "Group.member.entity.identifier.value",
        "path": "Group.member.entity.identifier.value",
        "example": [
          {
            "label": "KZZ",
            "valueString": "12345"
          }
        ]
      }
    ]
  }
}