{
  "resourceType": "StructureDefinition",
  "id": "argo-patientlist2",
  "url": "http://www.fhir.org/guides/sushi-sandbox/StructureDefinition/argo-patientlist2",
  "version": "0.1.0",
  "name": "ArgonautPatientListProfile",
  "title": "Argonaut Patient List (Group) Profile",
  "status": "active",
  "description": "Profile on the R4 Group resource to for [Argonaut Patient List Project](https://confluence.hl7.org/display/AP/Argonaut+Project+Home).  Note that the [Group](http://hl7.org/fhir/group.html) resource is used for this patient **list** use case even though there is also a FHIR List resource",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Group",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Group",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Group.identifier",
        "path": "Group.identifier",
        "comment": "do we need to include or be silent? I think should be silent"
      },
      {
        "id": "Group.active",
        "path": "Group.active",
        "comment": "do we need to include or be silent? I think should be silent"
      },
      {
        "id": "Group.type",
        "path": "Group.type",
        "patternCode": "person",
        "mustSupport": true
      },
      {
        "id": "Group.actual",
        "path": "Group.actual",
        "requirements": "Argo Patient Lists always list members",
        "patternBoolean": true,
        "mustSupport": true
      },
      {
        "id": "Group.code",
        "path": "Group.code",
        "comment": "although generally omitted for persons I think should be silent"
      },
      {
        "id": "Group.quantity",
        "path": "Group.quantity",
        "comment": "do we need to include or be silent? I think should be silent at least until we find a need for its inclusion"
      },
      {
        "id": "Group.managingEntity",
        "path": "Group.managingEntity",
        "requirements": "Used for searching for user or system-maintained lists",
        "mustSupport": true,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization",
              "http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner"
            ]
          }
        ]
      },
      {
        "id": "Group.characteristic",
        "path": "Group.characteristic",
        "requirements": "Used for searching for by group parameter such as location",
        "mustSupport": true
      },
      {
        "id": "Group.characteristic.code",
        "path": "Group.characteristic.code",
        "mustSupport": true,
        "binding": {
          "strength": "extensible",
          "valueSet": "http://www.fhir.org/guides/sushi-sandbox/ValueSet/argo-group-characteristic"
        }
      },
      {
        "id": "Group.characteristic.value[x]",
        "path": "Group.characteristic.value[x]",
        "comment": "do we need to constrain this list - can everybody support all the types if they support the characteristic element or for example do we need to you only need to must support just code and boolean",
        "mustSupport": true
      },
      {
        "id": "Group.characteristic.exclude",
        "path": "Group.characteristic.exclude",
        "comment": "this is required in the base",
        "mustSupport": true
      },
      {
        "id": "Group.characteristic.period",
        "path": "Group.characteristic.period",
        "comment": "this is how would support parameter for  'today' or 'tomorrow'",
        "mustSupport": true
      },
      {
        "id": "Group.member",
        "path": "Group.member",
        "comment": "enumerated list of members",
        "mustSupport": true
      },
      {
        "id": "Group.member.entity",
        "path": "Group.member.entity",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"
            ]
          }
        ],
        "comment": "enumerated list of members",
        "mustSupport": true
      },
      {
        "id": "Group.member.period",
        "path": "Group.member.period",
        "comment": "do we need to include or be silent? I think should be silent"
      },
      {
        "id": "Group.member.inactive",
        "path": "Group.member.inactive",
        "comment": "do we need to include or be silent? I think should be silent"
      }
    ]
  }
}