# Returns a list of PatientProcedures based on filter criteria

**Query shape:** Prefer a **narrow** filter—combine scoping filters with `lastModified` or date bounds where supported. A very wide date range with no other scoping can **408** (timeout) on large tenants; retry with a smaller window or use cursor pagination (`lastId` with `lastModified`—see parameter descriptions).
**Empty results:** **200** with `data: []` means no PatientProcedures matched; it does not indicate invalid filter values.
**responseFields:** Use only names allowed on this operation (see the `responseFields` parameter). Use `ALL` or the documented flat field list.
**Pagination:** The `page` query parameter is deprecated where `lastId` is supported; **`lastModified` / `lastId`** style pagination is preferred.

Endpoint: GET /v1/patientprocedures
Version: 193.0.0
Security: bearerAuth, oAuthSandbox

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

  - `oAuthSandbox` (unknown)
    oauth2

## Query parameters:

  - `responseFields` (string)
    A URL-encoded, comma-delimited list of field names to include in the response data. Additionally, the following values are also supported:

ALL - Returns all field names.

  - `filter` (string)
    Filter clauses for patientprocedures. General grammar and operators: the Public API filter documentation.
**Auto filter:** If you omit a date-limiting filter (such as `lastModified`), the server may apply one automatically; behavior can vary by deployment.
**Keys and operators (this endpoint)**
- `serviceDate` (`>`, `<`, `>=`, `<=`)
- `entryDate` (`>`, `<`, `>=`, `<=`)
- `lastModified` (`>`, `<`, `>=`, `<=`)
- `treatmentPlannedProvider.id` (`==`, `!=`)
- `status` (`==`, `!=`)
- `txCase.id` (`==`, `->`)
- `location.id` (`==`, `!=`, `->`)
- `patient.id` (`==`, `!=`, `->`)
- `state` (`==`)
- `referredOut` (`==`, `!=`)
**Ordering:** When filtering by `serviceDate`, `lastModified`, results are returned in **descending** order (newest first) where applicable; use `lastId` with date filters for stable pagination.

Examples: `patient.id==12345`, `location.id==12`, `serviceDate>=2022-01-01`, `treatmentPlannedProvider.id==12`, `txCase.id==12`.

  - `page` (string)
    Page number for pagination control

  - `pageSize` (string)
    Page size for pagination control

  - `lastId` (string)
    the biggest patientProcedureId from previous page

## Header parameters:

  - `Organization-ID` (string, required)
    Organization context for the request. Must match the organization authorized by the access token.

## Response 200:

  - `200` (unknown)
    The request was successful

## Response 200 fields (application/json):

  - `data` (array)

  - `data.id` (integer)

  - `data.unlock` (boolean)
    Example: true

  - `data.lastModified` (string)
    Example: 2018-07-09T19:00:00.000Z

  - `data.amount` (number, required)
    Example: 123.56

  - `data.entryDate` (string)
    Example: 2021-09-29T00:00:00.000Z

  - `data.serviceDate` (string)
    Example: 2021-09-29T00:00:00.000Z

  - `data.startDate` (string)
    Example: 2018-07-09T00:00:00.000Z

  - `data.endDate` (string)
    Example: 2018-07-09T00:00:00.000Z

  - `data.treatmentPlannedDate` (string)
    Example: 2018-07-09T00:00:00.000Z

  - `data.expirationDate` (string)
    Example: 2018-07-09T19:00:00.000Z

  - `data.status` (string, required)
    Enum: "COMPLETED", "EXISTING", "TREATMENT_PLAN", "IN_PROCESS", "REFERRED"

  - `data.oralCavity` (string)
    Enum: "UPPER_LEFT", "UPPER_RIGHT", "LOWER_LEFT", "LOWER_RIGHT", "ARCH_MAXILLARY", "ARCH_MANDI_BULAR", "UPPER_LEFT_SEXTANT", "UPPER_ANTERIOR_SEXTANT", "UPPER_RIGHT_SEXTANT", "LOWER_LEFT_SEXTANT", "LOWER_ANTERIOR_SEXTANT", "LOWER_RIGHT_SEXTANT"

  - `data.notes` (string)
    Example: string

  - `data.state` (string, required)
    Enum: "ACTIVE", "CANCELLED", "INVALIDATED"

  - `data.primaryInsuranceEstimateOverride` (number)
    Example: 1.23456

  - `data.secondaryInsuranceEstimateOverride` (number)
    Example: 1.23456

  - `data.billToInsurance` (boolean, required)
    Example: true

  - `data.autoCalculateEstimateEnabled` (boolean)
    Required if status field is COMPLETED
    Example: true

  - `data.monthsRemaining` (number)
    Example: 0

  - `data.procedureTeeth` (array)
    Required if treatmentArea of practiceProcedure is in [TOOTH, SURFACE, ROOT]

  - `data.procedureTeeth.id` (string)
    Example: abc123

  - `data.procedureTeeth.procedureId` (integer)
    Example: 987654321

  - `data.procedureTeeth.mesial` (boolean)
    Example: true

  - `data.procedureTeeth.incisal` (boolean)
    Example: false

  - `data.procedureTeeth.occlusal` (boolean)
    Example: true

  - `data.procedureTeeth.distal` (boolean)
    Example: false

  - `data.procedureTeeth.lingual` (boolean)
    Example: true

  - `data.procedureTeeth.facial` (boolean)
    Example: true

  - `data.procedureTeeth.buccal` (boolean)
    Example: false

  - `data.procedureTeeth.classFive` (boolean)
    Example: true

  - `data.procedureTeeth.toothId` (string)
    Example: T123

  - `data.procedureTeeth.incisalOcclusal` (boolean)
    Example: false

  - `data.procedureTeeth.facialBuccal` (boolean)
    Example: true

  - `data.practiceProcedure` (object, required)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.practiceProcedure.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.practiceProcedure.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.practiceProcedure.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.renderingProvider` (object, required)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.renderingProvider.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.renderingProvider.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.renderingProvider.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.treatmentPlannedProvider` (object)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.treatmentPlannedProvider.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.treatmentPlannedProvider.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.treatmentPlannedProvider.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.insuranceClaims` (array)

  - `data.insuranceClaims.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.insuranceClaims.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.insuranceClaims.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.patientConditions` (array)

  - `data.patientConditions.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.patientConditions.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.patientConditions.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.perioExams` (array)

  - `data.perioExams.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.perioExams.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.perioExams.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.patient` (object, required)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.patient.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.patient.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.patient.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.location` (object, required)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.location.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.location.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.location.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `data.txCase` (object)
    A reference to a linked model. Includes the id, the type, and URL at which the model can be accessed.

  - `data.txCase.id` (integer, required)
    The unique identifier for the linked model.
    Example: 12345

  - `data.txCase.type` (string)
    The type of the linked model. This field is read-only.
    Example: ExampleModelType

  - `data.txCase.url` (string, required)
    The URL at which the linked model can be accessed. This field is read-only.
    Example: https://api.example.com/models/12345

  - `warnings` (array)

  - `warnings.code` (string)

  - `warnings.title` (string)

  - `warnings.description` (string)

  - `warnings.source` (string)

  - `errors` (array)

  - `meta` (object)

  - `meta.pagination` (object)
    Pagination info
    Example: {"limit":10,"offset":0}

  - `meta.pagination.limit` (integer)
    Example: 10

  - `meta.pagination.offset` (integer)
    Example: 0

  - `meta.pagination.total` (integer)
    Example: 100

## Response 400:

  - `400` (unknown)
    The request was invalid or cannot be processed

## Response 401:

  - `401` (unknown)
    Authentication is required and has failed or has not been provided

## Response 403:

  - `403` (unknown)
    The request is understood, but it has been refused or access is not allowed

## Response 404:

  - `404` (unknown)
    The requested resource is either missing or does not exist

## Response 408:

  - `408` (unknown)
    The server timed out while processing the request

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 500:

  - `500` (unknown)
    An unexpected error occurred

## Response 200 examples:

  - `default` (unknown)

