> For the complete documentation index, see [llms.txt](https://docs.mdintegrations.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mdintegrations.com/partner-api-reference/patients/general/this-endpoint-returns-all-cases-related-to-the-patient-passed-on-the-request.md).

# This endpoint returns all cases related to the patient passed on the request

Returns a paginated list of the patient's cases, ordered newest first and scoped to the requesting partner. Partner callers receive a richer set of related case data (prescriptions, offerings, notes, files, diseases, tags) than clinician callers.

```json
{"openapi":"3.1.0","info":{"title":"MD Integrations","version":"1.0.0"},"tags":[{"name":"Patients/General"}],"servers":[{"url":"https://api.mdintegrations.dev/v1","description":"Development"}],"security":[{"oauth2":[]}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://api.mdintegrations.dev/v1/partner/auth/token","scopes":{"*":"Full partner account access"}}}}},"schemas":{"PatientCaseResource":{"type":"object","properties":{"prioritized_at":{"type":"string"},"prioritized_reason":{"type":"string"},"created_at":{"type":"string"},"is_sync":{"type":"string"},"case_type":{"type":"string"},"external_id":{"type":"string"},"metadata":{"type":"string"},"is_chargeable":{"type":"string"},"service_pdf_exported":{"type":"string"},"reference_case_id":{"type":"string"},"patient_exam_id":{"type":"string"},"is_additional_approval_needed":{"type":"string"},"locked_at":{"type":"string"},"charged_by":{"type":"string"},"case_id":{"type":"string"},"prioritized":{"type":"string"},"is_locked":{"type":"string"},"is_blocked_by_partner_state":{"type":"string"},"programs":{"type":"string"},"tier":{"type":"string"},"soap_notes":{"type":"string"},"questionnaire_summary":{"type":"string"},"case_status":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}},"required":["name","reason","created_at","updated_at"]},"case_assignment":{"type":"object","properties":{"case_assignment_id":{"type":"string"},"reason":{"type":"string"},"created_at":{"type":"string"},"clinician":{"type":"object","properties":{"clinician_id":{"type":"string"},"is_online":{"type":"string"},"is_out_of_office":{"type":"string"},"case_assignment_availability":{"type":"string"},"is_message_availability":{"type":"string"},"managed_by_partner":{"type":"string"},"specialty":{"type":"string"},"full_name":{"type":"string"},"first_name":{"type":"string"},"suffix":{"type":"string"},"last_name":{"type":"string"},"bio_details":{"type":"string"},"profile_url":{"type":"string"},"licenses":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"minItems":0,"maxItems":0,"additionalItems":false}]},"photo":{"type":["object","null"],"properties":{"path":{"type":"string"},"name":{"type":"string"},"mime_type":{"type":"string"},"url":{"type":"string"},"url_thumbnail":{"type":"string"},"file_id":{"type":"string"}},"required":["path","name","mime_type","url","url_thumbnail","file_id"]}},"required":["clinician_id","is_online","is_out_of_office","case_assignment_availability","is_message_availability","managed_by_partner","specialty","full_name","first_name","suffix","last_name","bio_details","profile_url","licenses","photo"]}},"required":["case_assignment_id","reason","created_at","clinician"]},"case_notes":{"type":"string"},"case_questions":{"type":"string"},"case_files":{"type":"string"},"diseases":{"type":"string"},"tags":{"type":"string"},"patient":{"type":"object","properties":{"first_name":{"type":"string"},"last_name":{"type":"string"},"email":{"type":"string"},"date_of_birth":{"type":"string"},"gender":{"type":"string"},"phone_number":{"type":"string"},"phone_type":{"type":"string"},"active":{"type":"string"},"pregnancy":{"type":"string"},"external_id":{"type":"string"},"metadata":{"type":"string"},"prefix":{"type":"string"},"ssn":{"type":"string"},"clinician_id":{"type":"string"},"recent_encounter_id":{"type":"string"},"important_offering_case_id":{"type":"string"},"middle_name":{"type":"string"},"patient_id":{"type":"string"},"gender_label":{"type":"string"},"is_live":{"type":"string"},"intro_video":{"type":"string"},"height":{"type":"string"},"weight":{"type":"string"},"allergies":{"type":"string"},"current_medications":{"type":"string"},"medical_conditions":{"type":"string"},"dosespot":{"type":"string"},"address":{"type":"object","properties":{"address":{"type":"string"},"zip_code":{"type":"string"},"city_name":{"type":"string"},"address2":{"type":"string"},"address_id":{"type":"string"},"state":{"type":"object","properties":{"name":{"type":"string"},"abbreviation":{"type":"string"},"is_sync":{"type":"string"},"is_av_flow":{"type":"string"},"state_id":{"type":"string"}},"required":["name","abbreviation","is_sync","is_av_flow","state_id"]}},"required":["address","zip_code","city_name","address2","address_id","state"]}},"required":["first_name","last_name","email","date_of_birth","gender","phone_number","phone_type","active","pregnancy","external_id","metadata","prefix","ssn","clinician_id","recent_encounter_id","important_offering_case_id","middle_name","patient_id","gender_label","is_live","intro_video","height","weight","allergies","current_medications","medical_conditions","dosespot","address"]},"partner":{"type":"object","properties":{"name":{"type":"string"},"operations_support_email":{"type":"string"},"support_message_capability":{"type":"string"},"patient_message_capability":{"type":"string"},"partner_notes":{"type":"string"},"customer_support_email":{"type":"string"},"thank_you_note_header":{"type":"string"},"thank_you_note_footer":{"type":"string"},"vouched_integration_type":{"type":"string"},"business_model":{"type":"string"},"enable_av_flow":{"type":"string"},"slack_channel_id":{"type":"string"},"enable_icd_bmi":{"type":"string"},"is_auto_dl_flow":{"type":"string"},"escalation_support_email":{"type":"string"},"review_notes":{"type":"string"},"is_patient_identity_verified":{"type":"string"},"notification_priority":{"type":"string"},"notification_schedule":{"type":"string"},"reassignment_interval":{"type":"string"},"is_patient_allowed_choose_notification_inbox":{"type":"string"},"is_sending_tracking_number_enabled":{"type":"string"},"partner_id":{"type":"string"},"can_unlock_phi":{"type":"string"},"customization":{"type":"object","properties":{"primary_color":{"type":["string","null"]},"secondary_color":{"type":["string","null"]},"background_color":{"type":["string","null"]}},"required":["primary_color","secondary_color","background_color"]}},"required":["name","operations_support_email","support_message_capability","patient_message_capability","partner_notes","customer_support_email","thank_you_note_header","thank_you_note_footer","vouched_integration_type","business_model","enable_av_flow","slack_channel_id","enable_icd_bmi","is_auto_dl_flow","escalation_support_email","review_notes","is_patient_identity_verified","notification_priority","notification_schedule","reassignment_interval","is_patient_allowed_choose_notification_inbox","is_sending_tracking_number_enabled","partner_id","can_unlock_phi","customization"]},"case_prescriptions":{"type":"array","items":{}},"case_services":{"type":"array","items":{}},"case_offerings":{"type":"array","items":{}},"orders":{"type":"string"}},"required":["prioritized_at","prioritized_reason","created_at","is_sync","case_type","external_id","metadata","is_chargeable","service_pdf_exported","reference_case_id","patient_exam_id","is_additional_approval_needed","locked_at","charged_by","case_id","prioritized","is_locked","is_blocked_by_partner_state","programs","tier","soap_notes","questionnaire_summary"],"title":"PatientCaseResource"}},"responses":{"AuthorizationException":{"description":"Authorization error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}},"ModelNotFoundException":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error overview."}},"required":["message"]}}}},"ValidationException":{"description":"Validation error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Errors overview."},"errors":{"type":"object","description":"A detailed description of each field that failed validation.","additionalProperties":{"type":"array","items":{"type":"string"}}}},"required":["message","errors"]}}}}}},"paths":{"/partner/patients/{patient}/cases":{"get":{"operationId":"patient.getPatientCases","description":"Returns a paginated list of the patient's cases, ordered newest first and scoped to the\nrequesting partner. Partner callers receive a richer set of related case data\n(prescriptions, offerings, notes, files, diseases, tags) than clinician callers.","summary":"This endpoint returns all cases related to the patient passed on the request","tags":["Patients/General"],"parameters":[{"name":"patient","in":"path","required":true,"description":"The patient ID","schema":{"type":"string"}}],"responses":{"200":{"description":"Paginated set of `PatientCaseResource`","content":{"application/json":{"schema":{"type":"object","properties":{"current_page":{"type":"integer","minimum":1},"data":{"type":"array","items":{"$ref":"#/components/schemas/PatientCaseResource"}},"first_page_url":{"type":["string","null"]},"from":{"type":["integer","null"],"minimum":1},"last_page_url":{"type":["string","null"]},"last_page":{"type":"integer","minimum":1},"links":{"type":"array","description":"Generated paginator links.","items":{"type":"object","properties":{"url":{"type":["string","null"]},"label":{"type":"string"},"active":{"type":"boolean"}},"required":["url","label","active"]}},"next_page_url":{"type":["string","null"]},"path":{"type":["string","null"],"description":"Base path for paginator generated URLs."},"per_page":{"type":"integer","description":"Number of items shown per page.","minimum":0},"prev_page_url":{"type":["string","null"]},"to":{"type":["integer","null"],"description":"Number of the last item in the slice.","minimum":1},"total":{"type":"integer","description":"Total number of items being paginated.","minimum":0}},"required":["current_page","data","first_page_url","from","last_page_url","last_page","links","next_page_url","path","per_page","prev_page_url","to","total"]}}}},"403":{"$ref":"#/components/responses/AuthorizationException"},"404":{"$ref":"#/components/responses/ModelNotFoundException"},"422":{"$ref":"#/components/responses/ValidationException"}}}}}}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mdintegrations.com/partner-api-reference/patients/general/this-endpoint-returns-all-cases-related-to-the-patient-passed-on-the-request.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
