> For the complete documentation index, see [llms.txt](https://docs.mymedtrics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mymedtrics.com/api-reference/graphql-gateway/programs-rotations-and-evaluations.md).

# Programs, rotations and evaluations

The same training data Connect serves, read in one request — for dashboards and reports.

The same training data Connect serves, read in one request — for dashboards and reports. 4 queries; send any of them to the endpoint on the [GraphQL gateway](/api-reference/graphql-gateway.md) page, the same way as the first query there.

### programs

The programs of an institution; filter by active state or search by name.

Arguments: `institutionId` (ID) · `first` (Int) · `after` (String) · `isActive` (Boolean) · `search` (String)

```graphql
query {
  programs(first: 20) { id institutionId organizationId name shortName }
}
```

Returns `[GraphQLProgram!]!`:

#### GraphQLProgram

| Field                 | Type       |
| --------------------- | ---------- |
| `id`                  | `ID!`      |
| `institutionId`       | `ID!`      |
| `organizationId`      | `ID`       |
| `name`                | `String!`  |
| `shortName`           | `String`   |
| `code`                | `String`   |
| `programType`         | `String`   |
| `specialty`           | `String`   |
| `subspecialty`        | `String`   |
| `isActive`            | `Boolean!` |
| `accreditationStatus` | `String`   |
| `createdAt`           | `String!`  |
| `updatedAt`           | `String!`  |

### program

One program by id.

Arguments: **`id`** (ID, required) · `institutionId` (ID)

```graphql
query {
  program(id: "…") { id institutionId organizationId name shortName }
}
```

Returns `GraphQLProgram` — fields as under [GraphQLProgram](#graphqlprogram) above.

### rotations

Rotations, optionally for one program.

Arguments: `institutionId` (ID) · `programId` (ID) · `first` (Int) · `after` (String)

```graphql
query {
  rotations(first: 20) { id userId clinicalRotationInstanceId blockId programId enrollmentConfirmation { confirmed source confirmedAt } }
}
```

Returns `[GraphQLRotation!]!`:

#### GraphQLRotation

| Field                        | Type                            |
| ---------------------------- | ------------------------------- |
| `id`                         | `ID!`                           |
| `userId`                     | `ID!`                           |
| `clinicalRotationInstanceId` | `ID!`                           |
| `blockId`                    | `ID`                            |
| `programId`                  | `ID!`                           |
| `institutionId`              | `ID!`                           |
| `rotationName`               | `String!`                       |
| `startAt`                    | `String`                        |
| `endAt`                      | `String`                        |
| `status`                     | `String!`                       |
| `isConfirmed`                | `Boolean!`                      |
| `isReviewed`                 | `Boolean!`                      |
| `reviewedAt`                 | `String`                        |
| `publicationState`           | `String`                        |
| `mutationVersion`            | `String!`                       |
| `enrollmentConfirmation`     | `GraphQLEnrollmentConfirmation` |
| `dateProgress`               | `String`                        |
| `createdAt`                  | `String!`                       |
| `updatedAt`                  | `String!`                       |

Nested: `enrollmentConfirmation` → [`GraphQLEnrollmentConfirmation`](/api-reference/graphql-gateway/types.md#graphqlenrollmentconfirmation).

### evaluations

Evaluations, optionally for one program or one status.

Arguments: `institutionId` (ID) · `programId` (ID) · `status` (String) · `first` (Int) · `after` (String)

```graphql
query {
  evaluations(status: "…", first: 20) { id formId formName formTypeName isAnonymous }
}
```

Returns `[GraphQLEvaluation!]!`:

#### GraphQLEvaluation

| Field                        | Type       |
| ---------------------------- | ---------- |
| `id`                         | `ID!`      |
| `formId`                     | `ID!`      |
| `formName`                   | `String`   |
| `formTypeName`               | `String`   |
| `isAnonymous`                | `Boolean!` |
| `institutionId`              | `ID!`      |
| `programId`                  | `ID!`      |
| `programName`                | `String`   |
| `clinicalRotationInstanceId` | `ID`       |
| `dueDate`                    | `String`   |
| `status`                     | `String!`  |
| `completed`                  | `Boolean!` |
| `canceled`                   | `Boolean!` |
| `unableToAssess`             | `Boolean!` |
| `assignedAt`                 | `String`   |
| `completedAt`                | `String`   |
| `createdAt`                  | `String!`  |
| `updatedAt`                  | `String!`  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mymedtrics.com/api-reference/graphql-gateway/programs-rotations-and-evaluations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
