> ## Documentation Index
> Fetch the complete documentation index at: https://developer.eka.care/llms.txt
> Use this file to discover all available pages before exploring further.

# List Admission Advices for Patient

> 
### Overview

This API lists the **admission advices** for a patient in your workspace — the times a doctor advised admission in a prescription (the "Admission Advised" section), newest first. Use it to start an admission from a doctor's advice.



## OpenAPI

````yaml get /ipd/v1/service/admissions/advices/{patient_id}
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/admissions/advices/{patient_id}:
    get:
      tags:
        - IPD API
      summary: List Admission Advices for Patient
      description: >-

        ### Overview


        This API lists the **admission advices** for a patient in your workspace
        — the times a doctor advised admission in a prescription (the "Admission
        Advised" section), newest first. Use it to start an admission from a
        doctor's advice.
      operationId: ListIpdAdmissionAdvices
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
        - name: patient_id
          in: path
          description: Id of the patient.
          required: true
          style: simple
          schema:
            type: string
          example: pid-321
      responses:
        '200':
          description: OK — the admission advices of the patient.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/IpdAdmissionAdvice'
              example:
                success: true
                data:
                  - id: 66f1cf29e4b0a1b2c3d4f10d
                    advised: true
                    created_at: '2026-10-05T10:00:00.000Z'
                    docid: '161467756044203'
                    include_procedures: true
                    notes: Admit for observation
                    patientid: pid-321
                    procedures:
                      - id: proc-appendectomy
                        name: Appendectomy
                    pxid: px-98765
                    visitid: visit-12345
        '400':
          description: Bad Request — the advices could not be loaded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdAdmissionAdvice:
      title: IpdAdmissionAdvice
      type: object
      properties:
        id:
          type: string
          description: Advice id.
        advised:
          type: boolean
          description: Always `true` for listed advices.
        created_at:
          type: string
          description: Date-time the admission was advised, as an ISO-8601 string.
        docid:
          type: string
          description: Id of the doctor who advised admission.
        include_procedures:
          type: boolean
          description: Whether procedures were advised with the admission.
        notes:
          type: string
          description: Notes from the advice.
        patientid:
          type: string
          description: Id of the patient.
        procedures:
          type: array
          description: Advised procedures.
          items:
            type: object
            additionalProperties: true
            properties:
              id:
                type: string
              name:
                type: string
        pxid:
          type: string
          description: Id of the prescription the advice came from.
        visitid:
          type: string
          description: Id of the visit the advice came from.
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.