swagger: "2.0"
info:
  title: Exakt API Documentation
  description: API documentation for Exakt
  version: 1.0.0
host: localhost:8080/
basePath: exakt/api/version1
schemes:
  - http
paths:
  /library/{height}/{weight}/zScore:
    get:
      tags:
        - FPE / Library
      summary: get BMI classification
      parameters: 
        - name: height
          in: path
          description: specific height
          required: true
          type: string 
        - name: weight
          in: path
          description: specific weight
          required: true
          type: string 
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /library/{height}/{weight}/bmi-classification:
    get:
      tags:
        - FPE / Library
      summary: get BMI classification
      parameters: 
        - name: height
          in: path
          description: specific height
          required: true
          type: string 
        - name: weight
          in: path
          description: specific weight
          required: true
          type: string 
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/patient-all-fpe-record:
    get:
      tags:
        - FPE / Library
      summary: get all fpe details
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string
        - name: patientId
          in: path
          description: specific patient id
          required: true
          type: string 
        - name: page
          in: query
          required: true
          description: page of the result
          type: number
        - name: limit
          in: query
          required: true
          description: limit of the result
          type: number
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/patient-fpe-record/{patientId}:
    get:
      tags:
        - FPE / Library
      summary: get fpe details
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string
        - name: patientId
          in: path
          description: specific patient id
          required: true
          type: string 
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong 
  /patient/{accreditationNumber}/validate-atc:
    get:
      tags:
        - FPE / Library
      summary: validate patient ATC details
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong 
  /patient/{accreditationNumber}/{userId}/edit-fpe-record/{patientId}: 
    put:
      tags:
        - Patient / First patient encounter
      summary: Put fpe details
      parameters: 
        - name: accreditationNumber
          in: path
          required: true
          description: specific accreditation number
          type: string
        - name: userId
          in: path
          required: true
          description: specific user id
          type: string
        - name: patientId
          in: path
          required: true
          description: specific patient id
          type: string
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        201:
          description: Created
        400:
          description: Bad request
        401:
          description: Unauthorized
        404:
          description: Not found
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/{userId}/add-fpe-record/{patientId}: 
    post:
      tags:
        - Patient / First patient encounter
      summary: Post fpe details
      parameters: 
        - name: accreditationNumber
          in: path
          required: true
          description: specific accreditation number
          type: string
        - name: userId
          in: path
          required: true
          description: specific user id
          type: string
        - name: patientId
          in: path
          required: true
          description: specific patient id
          type: string
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        201:
          description: Created
        400:
          description: Bad request
        401:
          description: Unauthorized
        404:
          description: Not found
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/edit-details-checker/{patientId}:
    get:
      tags:
        - Patient / Library
      summary: edit checker for the patient
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string  
        - name: patientId
          in: path
          description: specific patient id
          required: true
          type: string  
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/patient-record-lists:
    get:
      tags:
        - Patient / Library
      summary: get all patient details
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string  
        - name: page
          in: query
          required: true
          description: page of the result
          type: number
        - name: limit
          in: query
          required: true
          description: limit of the result
          type: number
        - name: search
          in: query
          required: false
          description: search
          type: varchar
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/patient-record/{patientId}:
    get:
      tags:
        - Patient / Library
      summary: get patient details
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string
        - name: patientId
          in: path
          description: specific patient id
          required: true
          type: string
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/validate-philhealth-id/{patientId}:
    get:
      tags:
        - Patient / Library
      summary: validate patient philhealth id
      parameters: 
        - name: accreditationNumber
          in: path
          description: specific accreditation number
          required: true
          type: string
        - name: patientId
          in: path
          description: specific patient id
          required: true
          type: string
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong  
  /patient/{accreditationNumber}/{userId}/add-patient-record: 
    post:
      tags:
        - Patient / Mobile-Register
      summary: Post a patient information
      parameters: 
        - name: accreditationNumber
          in: path
          required: true
          description: specific accreditation number
          type: string
        - name: userId
          in: path
          required: true
          description: specific user id
          type: string
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        201:
          description: Created
        400:
          description: Bad request
        401:
          description: Unauthorized
        404:
          description: Not found
        500:
          description: Something went wrong
  /patient/{accreditationNumber}/{userId}/edit-patient-record/{patientId}:
    put:
      tags:
        - Patient / Mobile-Register
      summary: Put patient information
      parameters: 
        - name: accreditationNumber
          in: path
          required: true
          description: specific accreditation number
          type: string
        - name: userId
          in: path
          required: true
          description: specific user id
          type: string
        - name: patientId
          in: path
          required: true
          description: specific patient
          type: string
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        200:
          description: Success
        400:
          description: Bad request
        401:
          description: Unauthorized
        404:
          description: Not found
        500:
          description: Something went wrong
  /users/check-user:
    post:
      tags:
        - Users / Login
      summary: check user
      parameters: 
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong
  /users/login:
    post:
      tags:
        - Users / Login
      summary: Login 
      parameters: 
        - name: request-body
          in: body
          description: request body
          required: true
          type: string
      responses:
        200:
          description: Success
        401:
          description: Unauthorized
        500:
          description: Something went wrong 
   
