{
  "resourceType": "StructureDefinition",
  "id": "pr-care-team",
  "meta": {
    "source": "https://www.icanbwell.com/fhir_profile_definitions",
    "security": [
      {
        "system": "https://www.icanbwell.com/owner",
        "code": "bwell"
      },
      {
        "system": "https://www.icanbwell.com/access",
        "code": "bwell"
      }
    ]
  },
  "url": "https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-care-team",
  "version": "1.01",
  "name": "CareTeam",
  "title": "Profile: Care Team",
  "status": "active",
  "experimental": false,
  "date": "2022-03-30",
  "publisher": "b.Well Connected Health",
  "description": "Providers associated to a patient's medical care",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "US",
          "display": "United States of America"
        }
      ],
      "text": "United States of America"
    }
  ],
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "CareTeam",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CareTeam",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "CareTeam",
        "path": "CareTeam"
      },
      {
        "id": "CareTeam.id",
        "path": "CareTeam.id"
      },
      {
        "id": "CareTeam.meta",
        "path": "CareTeam.meta",
        "label": "meta",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "id": "CareTeam.meta.source",
        "path": "CareTeam.meta.source",
        "sliceName": "meta-source",
        "label": "meta",
        "short": "uri of the data source",
        "definition": "Typically the data owner's URL followed by a source/file description",
        "requirements": "mandatory for all resources in bWell's FHIR Server",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "example": [
          {
            "label": "example of meta.source",
            "valueUri": "https://www.icanbwell.com/provider-directory"
          }
        ]
      },
      {
        "id": "CareTeam.meta.security",
        "path": "CareTeam.meta.security",
        "sliceName": "meta-security",
        "label": "meta",
        "short": "security tags representing the data's owner, vendor, and accessibility",
        "definition": "data owner: \n \n data vendor: \n \n data access: ",
        "requirements": "/owner & /access are mandatory for all resources in bWell's FHIR Server",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "example": [
          {
            "label": "example of data owner security tag",
            "valueCoding": {
              "system": "https://www.icanbwell.com/owner",
              "code": "bwell"
            }
          },
          {
            "label": "example of data access security tag",
            "valueCoding": {
              "system": "https://www.icanbwell.com/access",
              "code": "bwell"
            }
          },
          {
            "label": "example of data vendor security tag",
            "valueCoding": {
              "system": "https://www.icanbwell.com/vendor",
              "code": "bwell"
            }
          }
        ]
      },
      {
        "id": "de-identifier",
        "path": "CareTeam.identifier",
        "label": "identifier",
        "slicing": {
          "description": "slice by types",
          "rules": "open"
        },
        "short": "a value to identify the resource by",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "identifier.id",
        "path": "CareTeam.identifier.id",
        "label": "identifier",
        "short": "set case-by-case",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "identifier.use",
        "path": "CareTeam.identifier.use",
        "label": "identifier",
        "short": "usual | official | temp | secondary | old (If known)",
        "definition": "The purpose of this identifier.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "identifier.type",
        "path": "CareTeam.identifier.type",
        "label": "identifier",
        "short": "Description of identifier",
        "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
        "requirements": "Needs binding valueset",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "identifier.system",
        "path": "CareTeam.identifier.system",
        "label": "identifier",
        "short": "The system which created the identifier",
        "definition": "Values may be an oid, uri, url, or canonical",
        "comment": "for mapped data, this is frequently a canonical url",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "example": [
          {
            "label": "a client's unknown system",
            "valueUri": "https://www.health.org/person-identifier"
          }
        ]
      },
      {
        "id": "identifier.value",
        "path": "CareTeam.identifier.value",
        "label": "identifier",
        "short": "The unique value",
        "definition": "The raw identifier value that represents a resource",
        "requirements": "This should be the raw value, as it exists in the source data (ie without prefix)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "CareTeam.status",
        "path": "CareTeam.status",
        "comment": "default to active",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CareTeam.category",
        "path": "CareTeam.category",
        "min": 1,
        "max": "1",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "LA28865-6",
              "display": "Longitudinal care-coordination focused care team"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "CareTeam.name",
        "path": "CareTeam.name",
        "short": "name of the care team",
        "mustSupport": true
      },
      {
        "id": "CareTeam.subject",
        "path": "CareTeam.subject",
        "label": "patient",
        "short": "The patient",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-patient"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "CareTeam.encounter",
        "path": "CareTeam.encounter",
        "max": "0"
      },
      {
        "id": "CareTeam.participant",
        "path": "CareTeam.participant",
        "short": "providers included in this care team",
        "min": 1,
        "max": "*",
        "mustSupport": true
      },
      {
        "id": "CareTeam.participant.id",
        "path": "CareTeam.participant.id",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "CareTeam.participant.role",
        "path": "CareTeam.participant.role",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "223366009",
              "display": "Healthcare Professional"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "CareTeam.participant.member",
        "path": "CareTeam.participant.member",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.icanbwell.com/4_0_0/StructureDefinition/pr-practitioner"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}