# CharmHealth

> Read CharmHealth patients, appointments, practitioners and locations, and watch for booked, cancelled and missed appointments.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/charm-health

## Actions

### Get a location

Get one location's details.

**Inputs**

- Location (`location_id`, text, required): The location.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "line": [],
      "postalCode": "example",
      "state": "example",
      "use": "example"
    },
    "id": "example",
    "managingOrganization": {
      "display": "example",
      "reference": "example",
      "type": "example"
    },
    "meta": {
      "lastUpdated": "example"
    },
    "name": "example",
    "resourceType": "example",
    "status": "example",
    "telecom": []
  }
}
```

### Get a patient

Get one patient's demographics and contact details.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's ID.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": [],
    "birthDate": "example",
    "gender": "example",
    "id": "example",
    "identifier": [],
    "meta": {
      "lastUpdated": "example"
    },
    "name": [],
    "resourceType": "example",
    "telecom": []
  }
}
```

### Get a practitioner

Get one practitioner's details.

**Inputs**

- Practitioner (`practitioner_id`, text, required): The practitioner.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": [],
    "gender": "example",
    "id": "example",
    "identifier": [],
    "meta": {
      "lastUpdated": "example"
    },
    "name": [],
    "resourceType": "example",
    "telecom": []
  }
}
```

### Get an appointment

Get one appointment.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "appointmentType": {
      "coding": [],
      "text": "example"
    },
    "comment": "example",
    "description": "example",
    "end": "example",
    "id": "example",
    "identifier": [],
    "meta": {
      "lastUpdated": "example"
    },
    "participant": [],
    "patientInstruction": "example",
    "resourceType": "example",
    "serviceType": [],
    "start": "example",
    "status": "example"
  }
}
```

### Get an organization

Get one organization's details.

**Inputs**

- Organization (`organization_id`, text, required): The organization.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "active": false,
    "address": [],
    "id": "example",
    "meta": {
      "lastUpdated": "example"
    },
    "name": "example",
    "resourceType": "example",
    "telecom": []
  }
}
```

### List appointments

List appointments for a patient or practitioner, by status and date.

**Inputs**

- Patient ID (`patient_id`, text): Only this patient's appointments (the patient's ID).
- Practitioner (`practitioner_id`, text): Only this practitioner's appointments.
- Status (`status`, text): Only appointments with this status. One of: `booked`, `noshow`, `cancelled`.
- From date (`from_date`, date): Only appointments on or after this day.
- From days ago (`from_days_ago`, number): Only appointments on or after this many days ago, 0 for today. Use instead of From date. From 0 to 365.
- Page (`page`, number): Page to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "entry": [],
    "link": [],
    "resourceType": "example",
    "total": 1
  }
}
```

### List locations

List the practice's locations.

**Inputs**

- Name (`name`, text): Part of the location's name.
- City (`city`, text): The location's city.
- State (`state`, text): The location's state.
- Postal code (`postal_code`, text): The location's postal code.
- Page (`page`, number): Page to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "entry": [],
    "link": [],
    "resourceType": "example",
    "total": 1
  }
}
```

### List organizations

List the practice's organizations.

**Inputs**

- Name (`name`, text): Part of the organization's name.
- Page (`page`, number): Page to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "entry": [],
    "link": [],
    "resourceType": "example",
    "total": 1
  }
}
```

### List patients

Find patients by name, date of birth, gender or record ID.

**Inputs**

- Name (`name`, text): Part of the patient's name.
- Family name (`family_name`, text): The patient's family (last) name.
- Given name (`given_name`, text): The patient's given (first) name.
- Birth date (`birth_date`, date): The patient's date of birth.
- Gender (`gender`, text): The patient's gender. One of: `male`, `female`, `other`, `unknown`.
- Identifier (`identifier`, text): The patient's record ID, such as PAT0005.
- Page (`page`, number): Page to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "entry": [],
    "link": [],
    "resourceType": "example",
    "total": 1
  }
}
```

### List practitioners

List the practice's practitioners.

**Inputs**

- Name (`name`, text): Part of the practitioner's name.
- Identifier (`identifier`, text): The practitioner's identifier, such as an NPI.
- Page (`page`, number): Page to return, starting at 1. At least 1.

**Outputs**

- `data` (object): The response from CharmHealth.

**Example output**

```json
{
  "data": {
    "entry": [],
    "link": [],
    "resourceType": "example",
    "total": 1
  }
}
```
