To define

Supported Formats

json

GET /CareTeam
Care team Bundle

Supported Formats

json

Errors

Code Description
401 Unauthorized
500 Server crashed for some <%= reason %>

Examples

GET /CareTeam?patient=1&access_token=6b5h9crwD1EP2zzNDifB5GNZi1rgmU3vmjsdJE9G9BfhQUL3Pm7stAUvJCgwSbAb
200
{
  "resourceType": "Bundle",
  "id": "e0c8825ca9a976e019fb7336b762e7b8",
  "type": "search set",
  "entry": [
    {
      "full_url": "https://camp.carepaths.dev:9215/CareTeam/1008",
      "resource": {
        "resourceType": "CareTeam",
        "id": "1008",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2021-03-23T19:36:17.299+00:00",
          "source": "#E1VolYkq84D3M96u",
          "profile": [
            "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam"
          ]
        },
        "status": "active",
        "subject": {
          "reference": "Patient/1",
          "display": "Alice Newman"
        },
        "participant": [
          {
            "role": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "224583007",
                    "display": "Behavior therapist (occupation)"
                  }
                ]
              }
            ],
            "member": {
              "reference": "Practitioner/1008",
              "display": "Albert Davis"
            }
          },
          {
            "role": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "COMPOSER",
                    "display": "composer software"
                  }
                ]
              }
            ],
            "member": {
              "reference": "Organization/1007",
              "display": "Neighborhood Physicians Practice"
            }
          }
        ]
      }
    }
  ],
  "total": 1
}

Params

Param name Description
access_token
required

CarePaths User OAuth Token

Validations:

  • Must be String.

patient
optional

ID of the requested patient

Validations:

  • Must be number.

status
optional

Status of care team e.g. “active”

Validations:

  • Must be string.

start_date
optional

Start date for dataset; Format YYYY-MM-DD

Validations:

  • Must be Date.

end_date
optional

End date for dataset; Format YYYY-MM-DD

Validations:

  • Must be Date.

Returns

Code: 200

Description:

List of resources

Param name Description
resource_type
required

Bundle

Validations:

  • Must be String.

type
required

Validations:

  • Must be String.


GET /CareTeam/:id
Care team by id

Supported Formats

json

Errors

Code Description
401 Unauthorized
500 Server crashed for some <%= reason %>

Examples

GET /CareTeam/1008?access_token=6b5h9crwD1EP2zzNDifB5GNZi1rgmU3vmjsdJE9G9BfhQUL3Pm7stAUvJCgwSbAb
200
{
  "resourceType": "CareTeam",
  "id": "1008",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2021-03-23T19:36:17.299+00:00",
    "source": "#E1VolYkq84D3M96u",
    "profile": [
      "http://hl7.org/fhir/us/core/StructureDefinition/us-core-careteam"
    ]
  },
  "status": "active",
  "subject": {
    "reference": "Patient/1",
    "display": "Alice Newman"
  },
  "participant": [
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "224583007",
              "display": "Behavior therapist (occupation)"
            }
          ]
        }
      ],
      "member": {
        "reference": "Practitioner/1008",
        "display": "Albert Davis"
      }
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "COMPOSER",
              "display": "composer software"
            }
          ]
        }
      ],
      "member": {
        "reference": "Organization/",
        "display": "Neighborhood Physicians Practice"
      }
    }
  ]
}

Params

Param name Description
access_token
required

CarePaths User OAuth Token

Validations:

  • Must be String.

id
optional

ID of requested care team

Validations:

  • Must be number.

Returns

Code: 200

Description:

List of resources

Param name Description
resource_type
required

CareTeam

Validations:

  • Must be String.

status
required

Validations:

  • Must be String.

subject
required

Validations:

  • Must be Hash.

participant
required

Validations:

  • Must be Array.


GET /CareTeam/_search
Care team search