Skip to content

Instantly share code, notes, and snippets.

@jufianto
Last active January 28, 2020 03:42
Show Gist options
  • Save jufianto/4c76d74bdc0aca10b7a84b7d91962b7a to your computer and use it in GitHub Desktop.
Save jufianto/4c76d74bdc0aca10b7a84b7d91962b7a to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.1",
"info": {
"title": "Senang SIMRS App API Docs",
"description": "Dokumentasi SIM RS Rumah Sakit Zainab",
"version": "1.0.0"
},
"servers": [
{
"url": "http://localhost:8989/v1"
},
{
"url": "http://localhost:8000/v1"
}
],
"tags": [
{
"name": "akunuser",
"description": "Manajemen Akun User"
}
],
"paths": {
"/cookies": {
"get": {
"tags": [
"akunuser"
],
"responses": {
"200": {
"description": "check cookie",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors"
}
}
}
}
}
}
},
"/login": {
"post": {
"tags": [
"akunuser"
],
"summary": "Login to System",
"requestBody": {
"description": "Data Login",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPost"
}
}
}
},
"responses": {
"200": {
"description": "Login Responses",
"headers": {
"Set-Cookie": {
"schema": {
"type": "string",
"example": "connect.sid=fd4698c940c6d1da602a70ac34f0b147; Path=/; HttpOnly"
}
}
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"responses": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"token": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
},
"/akunuser": {
"get": {
"tags": [
"akunuser"
],
"summary": "Get All Data on Akun User",
"responses": {
"200": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
}
}
},
"post": {
"tags": [
"akunuser"
],
"summary": "Save Akun User",
"requestBody": {
"description": "Data kiriman untuk tambah user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPost"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "array",
"items": {
"$ref": "#/components/schemas/akunuser"
},
"example": {
"username": "zainab",
"role": "USER",
"status": "NONAKTIF"
}
}
}
}
}
}
},
"401": {
"description": "Bad Request, Error of input",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "object",
"example": null
}
}
},
"example": {
"error": {
"kode_error": 3,
"pesan": "input error",
"data": [
"username"
]
},
"respon": null
}
}
}
}
}
}
},
"/akunuser/{username}": {
"get": {
"tags": [
"akunuser"
],
"summary": "Get data by Username",
"parameters": [
{
"name": "username",
"in": "path",
"description": "Username user",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success Operation",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
}
}
},
"put": {
"tags": [
"akunuser"
],
"summary": "Edit User data",
"parameters": [
{
"name": "username",
"in": "path",
"description": "Username",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"description": "Data Body untuk edit",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPUT"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
},
"400": {
"description": "BAD Request, Data Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
},
"example": {
"error": {
"kode_error": 5,
"pesan": "edit data gagal",
"data": null
},
"respon": null
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"cookieAuth": {
"type": "apiKey",
"in": "cookie",
"name": "SENANG_SYS"
}
},
"schemas": {
"akunuser": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "array",
"items": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"role": {
"type": "string"
},
"status": {
"type": "string"
}
}
}
}
}
},
"akunuserPost": {
"type": "object",
"properties": {
"username": {
"pattern": "^[A-z0-9_.]{4,20}$",
"type": "string",
"example": "zainab"
},
"password": {
"pattern": "^.{4,100}$",
"type": "string",
"example": "apasajaboleh"
}
}
},
"akunuserPUT": {
"type": "object",
"properties": {
"username": {
"pattern": "^[A-z0-9_.]{4,20}$",
"type": "string",
"example": "zainab"
},
"password": {
"pattern": "^.{4,100}$",
"type": "string",
"example": "apasajaboleh"
},
"status": {
"type": "string",
"example": "USER"
},
"role": {
"pattern": "^.{4,100}$",
"type": "string",
"enum": [
"AKTIF",
"NONAKTIF"
],
"example": "AKTIF"
}
}
},
"errors": {
"type": "object",
"properties": {
"kode_error": {
"type": "integer"
},
"pesan": {
"type": "string"
},
"data": {
"type": "string"
}
}
}
}
},
"security": [
{
"cookieAuth": []
}
]
}
{
"openapi": "3.0.1",
"info": {
"title": "Senang SIMRS App API Docs",
"description": "Dokumentasi SIM RS Rumah Sakit Zainab",
"version": "1.0.0"
},
"servers": [
{
"url": "http://localhost:8989/v1"
},
{
"url": "http://localhost:8000/v1"
}
],
"tags": [
{
"name": "akunuser",
"description": "Manajemen Akun User"
}
],
"paths": {
"/cookies": {
"get": {
"tags": [
"akunuser"
],
"responses": {
"200": {
"description": "check cookie",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/errors"
}
}
}
}
}
}
},
"/login": {
"post": {
"tags": [
"akunuser"
],
"summary": "Login to System",
"requestBody": {
"description": "Data Login",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPost"
}
}
}
},
"responses": {
"200": {
"description": "Login Responses",
"headers": {
"Set-Cookie": {
"schema": {
"type": "string",
"example": "connect.sid=fd4698c940c6d1da602a70ac34f0b147; Path=/; HttpOnly"
}
}
},
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"responses": {
"type": "object",
"properties": {
"role": {
"type": "string"
},
"token": {
"type": "string"
},
"username": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
},
"/akunuser": {
"get": {
"tags": [
"akunuser"
],
"summary": "Get All Data on Akun User",
"responses": {
"200": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
}
}
},
"post": {
"tags": [
"akunuser"
],
"summary": "Save Akun User",
"requestBody": {
"description": "Data kiriman untuk tambah user",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPost"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "array",
"items": {
"$ref": "#/components/schemas/akunuser"
},
"example": {
"username": "zainab",
"role": "USER",
"status": "NONAKTIF"
}
}
}
}
}
}
},
"401": {
"description": "Bad Request, Error of input",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "object",
"example": null
}
}
},
"example": {
"error": {
"kode_error": 3,
"pesan": "input error",
"data": [
"username"
]
},
"respon": null
}
}
}
}
}
}
},
"/akunuser/{username}": {
"get": {
"tags": [
"akunuser"
],
"summary": "Get data by Username",
"parameters": [
{
"name": "username",
"in": "path",
"description": "Username user",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success Operation",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
}
}
},
"put": {
"tags": [
"akunuser"
],
"summary": "Edit User data",
"parameters": [
{
"name": "username",
"in": "path",
"description": "Username",
"required": true,
"schema": {
"type": "string"
}
}
],
"requestBody": {
"description": "Data Body untuk edit",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuserPUT"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Success Operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
}
}
}
},
"400": {
"description": "BAD Request, Data Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/akunuser"
},
"example": {
"error": {
"kode_error": 5,
"pesan": "edit data gagal",
"data": null
},
"respon": null
}
}
}
}
}
}
}
},
"components": {
"securitySchemes": {
"cookieAuth": {
"type": "apiKey",
"in": "cookie",
"name": "SENANG_SYS"
}
},
"schemas": {
"akunuser": {
"type": "object",
"properties": {
"error": {
"$ref": "#/components/schemas/errors"
},
"respon": {
"type": "array",
"items": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"role": {
"type": "string"
},
"status": {
"type": "string"
}
}
}
}
}
},
"akunuserPost": {
"type": "object",
"properties": {
"username": {
"pattern": "^[A-z0-9_.]{4,20}$",
"type": "string",
"example": "zainab"
},
"password": {
"pattern": "^.{4,100}$",
"type": "string",
"example": "apasajaboleh"
}
}
},
"akunuserPUT": {
"type": "object",
"properties": {
"username": {
"pattern": "^[A-z0-9_.]{4,20}$",
"type": "string",
"example": "zainab"
},
"password": {
"pattern": "^.{4,100}$",
"type": "string",
"example": "apasajaboleh"
},
"status": {
"type": "string",
"example": "USER"
},
"role": {
"pattern": "^.{4,100}$",
"type": "string",
"enum": [
"AKTIF",
"NONAKTIF"
],
"example": "AKTIF"
}
}
},
"errors": {
"type": "object",
"properties": {
"kode_error": {
"type": "integer"
},
"pesan": {
"type": "string"
},
"data": {
"type": "string"
}
}
}
}
},
"security": [
{
"cookieAuth": []
}
]
}
openapi: 3.0.1
info:
title: Senang SIMRS App API Docs
description: Dokumentasi SIM RS Rumah Sakit Zainab
version: 1.0.0
servers:
- url: 'http://senang.test:5000/v1'
tags:
- name: akunuser
description: Manajemen Akun User
- name: pasien
description: Manajemen Pasien
- name: logpasien
description: Log terkait pasien
- name: dokter
description: Manajeman Dokter
- name: perawat
description: Manajemen Perawat
- name: CPPT
- name: Tindakan
description: Manajemen Tindakan
- name: Poli
description: Manajemen Poli
- name: Jadwal Dokter
description: Manajemen Jadwal Dokter
- name: Transaksi
description: Manajemen Transaksi Kasir
- name: Karyawan
description: Manajemen Karyawan
- name: Metric Admin
description: Manajemen Metric Admin
- name: Obat
description: Manajemen Obat
- name: Stok Obat
description: Manajement Stok Obat
- name: Antrian Obat
description: Manajement Antrian Obat
paths:
/login:
post:
tags:
- akunuser
summary: Login to System
requestBody:
description: Data Login
content:
application/json:
schema:
$ref: '#/components/schemas/akunuserPost'
responses:
'200':
description: Login Responses
headers:
Set-Cookie:
schema:
type: string
example: SENANG_SYS=fd4698c940c6d1da602a70ac34f0b147; Path=/; HttpOnly
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
responses:
type: object
properties:
role:
type: string
token:
type: string
username:
type: string
/akunuser:
get:
tags:
- akunuser
summary: Get All Data on Akun User
responses:
'200':
description: Success Operation
content:
application/json:
schema:
$ref: '#/components/schemas/akunuser'
post:
tags:
- akunuser
summary: Save Akun User
requestBody:
description: Data kiriman untuk tambah user
content:
application/json:
schema:
$ref: '#/components/schemas/akunuserPost'
required: true
responses:
'201':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/akunuser'
example:
username: zainab
role: USER
status: NONAKTIF
'401':
description: 'Bad Request, Error of input'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: object
example: null
example:
error:
kode_error: 3
pesan: input error
data:
- username
respon: null
'/akunuser/{username}':
get:
tags:
- akunuser
summary: Get data by Username
parameters:
- name: username
in: path
description: Username user
required: true
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
$ref: '#/components/schemas/akunuser'
put:
tags:
- akunuser
summary: Edit User data
parameters:
- name: username
in: path
description: Username
required: true
schema:
type: string
requestBody:
description: Data Body untuk edit
content:
application/json:
schema:
$ref: '#/components/schemas/akunuserPUT'
required: true
responses:
'200':
description: Success Operation
content:
application/json:
schema:
$ref: '#/components/schemas/akunuser'
'400':
description: 'BAD Request, Data Not Found'
content:
application/json:
schema:
$ref: '#/components/schemas/akunuser'
example:
error:
kode_error: 5
pesan: edit data gagal
data: null
respon: null
/pasien/:
get:
tags:
- pasien
summary: Get all data pasien
parameters:
- in: query
name: limit
description: limit search
required: false
schema:
type: integer
- in: query
name: offset
description: start offset search
required: false
schema:
type: integer
- in: query
name: namapasien
description: search by username
required: false
schema:
type: integer
- in: query
name: nomorktp
description: search by nomor ktp
required: false
schema:
type: integer
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/pasien'
post:
tags:
- pasien
summary: Save data pasien
requestBody:
description: Save data pasien
content:
application/json:
schema:
$ref: '#/components/schemas/pasien'
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/pasien'
'400':
description: bad request (regex pattern error)
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: string
example:
error:
kode_error: 3
pesan: input error
data:
- FieldError
respon: null
'/pasien/{nomorrekammedis}':
get:
tags:
- pasien
summary: Get Pasien by Nomor Rekam Medis
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
description: Nomor Rekam Medis
responses:
'200':
description: find pasien berdasarkan nomor rekam medis
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/pasien'
put:
tags:
- pasien
summary: Edit data pasien
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
description: Nomor Rekam Medis
responses:
'200':
description: success edited
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/pasien'
'400':
description: Find data gagal
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: string
example:
error:
kode_error: 3
pesan: edit data gagal
data: null
respon: null
'/logpasien/{nomorrekammedis}':
get:
tags:
- logpasien
summary: informasi terkait penanganan pasien
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
- in: query
name: jenislog
schema:
type: string
- in: query
name: limit
schema:
type: integer
- in: query
name: offset
schema:
type: integer
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logpasien'
post:
tags:
- logpasien
summary: menambah log pasien
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
requestBody:
description: data kiriman untuk log
content:
application/json:
schema:
$ref: '#/components/schemas/logpasienPOST'
responses:
'200':
description: success simpan
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/logpasien'
'400':
description: rekam medis not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: string
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon: null
/dokter/:
get:
tags:
- dokter
summary: Get Dokter
parameters:
- in: query
name: limit
description: limit search
required: false
schema:
type: integer
- in: query
name: offset
description: start offset search
required: false
schema:
type: integer
- in: query
name: namadokter
description: search by nama dokter
required: false
schema:
type: string
- in: query
name: spesialis
description: search by nomor spesialis
required: false
schema:
type: string
- in: query
name: status
description: search by status
required: false
schema:
type: string
- in: query
name: namapoli
description: search by nama poli
required: false
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/dokter'
post:
tags:
- dokter
summary: save Dokter
requestBody:
description: Data kiriman untuk tambah dokter
content:
application/json:
schema:
$ref: '#/components/schemas/dokterPOST'
required: true
responses:
'200':
description: Success save data
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/dokter'
'400':
description: primary / unique key duplicated
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/dokter'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon:
sip: ''
str: ''
masa_berakhir: ''
nama_dokter: ''
spesialis: ''
status: ''
'/dokter/{sip}':
get:
tags:
- dokter
summary: get single dokter
parameters:
- in: path
name: sip
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/dokter'
put:
tags:
- dokter
summary: edit data Dokter
parameters:
- in: path
name: sip
required: true
schema:
type: string
requestBody:
description: Data kiriman untuk edit dokter
content:
application/json:
schema:
$ref: '#/components/schemas/dokterPUT'
required: true
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/dokter'
'400':
description: SIP not Found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/dokter'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
/perawat/:
get:
tags:
- perawat
summary: Get Perawat
parameters:
- in: query
name: limit
description: limit search
required: false
schema:
type: integer
- in: query
name: offset
description: start offset search
required: false
schema:
type: integer
- in: query
name: sik
description: search by SIK
required: false
schema:
type: string
- in: query
name: namaperawat
description: search by nama perawat
required: false
schema:
type: string
- in: query
name: unit
description: search by unit
required: false
schema:
type: string
- in: query
name: status
description: search by status
required: false
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/perawat'
post:
tags:
- perawat
summary: Save Perawat
requestBody:
description: Data kiriman untuk tambah perawat
content:
application/json:
schema:
$ref: '#/components/schemas/perawatPOST'
required: true
responses:
'200':
description: Success save data
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/perawat'
'400':
description: primary / unique key duplicated
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/perawat'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon: null
'/perawat/{sik}':
get:
tags:
- perawat
summary: get single perawat
parameters:
- in: path
name: sik
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/perawat'
put:
tags:
- perawat
summary: edit data perawat
parameters:
- in: path
name: sik
required: true
schema:
type: string
requestBody:
description: Data kiriman untuk edit perawat
content:
application/json:
schema:
$ref: '#/components/schemas/perawatPUT'
required: true
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/perawat'
'400':
description: SIK not Found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/perawat'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
'/cppt/{nomorrekammedis}':
get:
tags:
- CPPT
summary: Get CPPT by nomor rekam medis
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/cppt'
post:
tags:
- CPPT
summary: save CPPT pasien
parameters:
- in: path
name: nomorrekammedis
required: true
schema:
type: integer
requestBody:
description: data body save
content:
application/json:
schema:
$ref: '#/components/schemas/cpptPOST'
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/cppt'
'/revisicppt/{uidcppt}':
get:
tags:
- CPPT
summary: Get Revisi CPPT by nomor rekam medis
parameters:
- in: path
name: uidcppt
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/revisicppt'
post:
tags:
- CPPT
summary: save Revisi CPPT pasien
parameters:
- in: path
name: uidcppt
required: true
schema:
type: integer
requestBody:
description: data body save
content:
application/json:
schema:
$ref: '#/components/schemas/revisicpptPOST'
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/revisicppt'
/tindakan/:
get:
tags:
- Tindakan
summary: get all tindakan
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/tindakan'
post:
tags:
- Tindakan
summary: Save Tindakan
requestBody:
description: body tindakan
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/tindakan'
responses:
'200':
description: success add
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/tindakan'
'400':
description: Double Primary Key
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/tindakan'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon:
kode_tindakan: ''
nama_tindakan: ''
biaya_tindakan: 0
keterangan: ''
'/tindakan/{kodeTindakan}':
get:
summary: get tindakan by id
tags:
- Tindakan
parameters:
- in: path
name: kodeTindakan
description: id Tindakan
required: true
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/tindakan'
put:
summary: edit tindakan by id
tags:
- Tindakan
parameters:
- in: path
name: kodeTindakan
description: id Tindakan
required: true
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/tindakan'
'400':
description: error regex / user not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: object
example:
error:
kode_error: 3
pesan: input error
data:
- NamaTindakan
respon: null
/logtransaksi/:
get:
tags:
- Transaksi
summary: Log Transaksi to Kasir
parameters:
- in: query
name: nomorrekammedis
schema:
type: string
- in: query
name: usernamepengisi
schema:
type: string
- in: query
name: status_transaksi
schema:
type: string
- in: query
name: jenis_pembayaran
schema:
type: string
- in: query
name: rentangtanggal
schema:
type: string
example: 2020-12-24,2020-12-28
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logtransaksi'
post:
tags:
- Transaksi
summary: Save Transaksi
requestBody:
description: body Transaksi
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/logtransaksiPOST'
responses:
'200':
description: success add
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logtransaksi'
'400':
description: Double Primary Key
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logtransaksi'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon:
kode_tindakan: ''
nama_tindakan: ''
biaya_tindakan: 0
keterangan: ''
'/logtransaksi/{kodeTransaksi}':
get:
summary: get tindakan by id
tags:
- Transaksi
parameters:
- in: path
name: kodeTransaksi
description: id Transaksi
required: true
schema:
type: string
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logtransaksi'
put:
summary: Ganti Status Transaksi
tags:
- Transaksi
parameters:
- in: path
name: kodeTransaksi
description: id Transaksi
required: true
schema:
type: string
requestBody:
description: data body
content:
application/json:
schema:
type: object
properties:
status_transaksi:
type: string
enum:
- SELESAI
- MENUNGGU
- BATAL
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/logtransaksiPUT'
'400':
description: error regex / user not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: object
example:
error:
kode_error: 3
pesan: Edit data gagal
data: null
respon: null
post:
summary: Tambah detail transaksi
tags:
- Transaksi
parameters:
- in: path
name: kodeTransaksi
description: id Transaksi
required: true
schema:
type: string
requestBody:
description: data body
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/detail_transaksiPOST'
responses:
'201':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/detail_transaksiPOST'
'400':
description: error regex / user not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: object
example:
error:
kode_error: 4
pesan: Input data gagal
data: null
respon: null
/poli/:
get:
tags:
- Poli
summary: Get Poli
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/poli'
post:
tags:
- Poli
summary: save poli
requestBody:
description: Data kiriman untuk tambah poli
content:
application/json:
schema:
$ref: '#/components/schemas/poliPOST'
required: true
responses:
'200':
description: Success save data
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/poli'
'400':
description: primary / unique key duplicated
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/poli'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon: null
'/poli/{uid}':
get:
tags:
- Poli
summary: get single poli
parameters:
- in: path
name: uid
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/poli'
put:
tags:
- Poli
summary: edit data poli
parameters:
- in: path
name: uid
required: true
schema:
type: string
requestBody:
description: Data kiriman untuk edit poli
content:
application/json:
schema:
$ref: '#/components/schemas/poliPOST'
required: true
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/poli'
'400':
description: SIP not Found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/poli'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
/obat/:
get:
tags:
- Obat
summary: Get Obat
responses:
'200':
description: Success Operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/obat'
post:
tags:
- Obat
summary: save obat
requestBody:
description: Data kiriman untuk tambah obat
content:
application/json:
schema:
$ref: '#/components/schemas/obatPOST'
required: true
responses:
'200':
description: Success save data
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/obatPOST'
'400':
description: primary / unique key duplicated
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/obatPOST'
example:
error:
kode_error: 4
pesan: input data gagal
data: null
respon: null
'/obat/{uid}':
get:
tags:
- Obat
summary: get single obat
parameters:
- in: path
name: uid
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/obat'
put:
tags:
- Obat
summary: edit data obat
parameters:
- in: path
name: uid
required: true
schema:
type: string
requestBody:
description: Data kiriman untuk edit obat
content:
application/json:
schema:
$ref: '#/components/schemas/obatPOST'
required: true
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/obatPOST'
'400':
description: SIP not Found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/obat'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
'/stokobat/{uidobat}':
post:
tags:
- Stok Obat
summary: untuk menambah stok obat
parameters:
- name: uidobat
in: path
description: UID dari obat
required: true
schema:
type: string
requestBody:
description: data body stok obat
content:
application/json:
schema:
$ref: '#/components/schemas/stok_obatPost'
responses:
'200':
description: Success Add
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
'400':
description: 'Input Gagal, data Posisi Sama'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
example:
error:
kode_error: 4
pesan: Input data gagal
data: null
respon: null
'/stokobat/{uid}':
put:
tags:
- Stok Obat
summary: untuk mengedit stok obat
parameters:
- name: uid
in: path
description: UID dari stok obat
required: true
schema:
type: string
requestBody:
description: data body stok obat
content:
application/json:
schema:
$ref: '#/components/schemas/stok_obatPost'
responses:
'200':
description: Success Edit
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
'400':
description: 'Input Gagal, data Posisi Sama'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
/stokobat/kadaluarsa:
get:
tags:
- Stok Obat
description: Cek kadaluarsa obat
responses:
'200':
description: Success get
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
$ref: '#/components/schemas/stok_obat'
/antrianobat/:
get:
tags:
- Antrian Obat
description: List antrian obat
responses:
'200':
description: Success get
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/antrian_obat'
post:
tags:
- Antrian Obat
summary: untuk menambah stok obat
requestBody:
description: data body stok obat
content:
application/json:
schema:
$ref: '#/components/schemas/stok_obatPost'
responses:
'200':
description: Success Add
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
'400':
description: 'Input Gagal, data Posisi Sama'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
example:
error:
kode_error: 4
pesan: Input data gagal
data: null
respon: null
/antrianobat/{uid}:
get:
tags:
- Antrian Obat
summary: get single Antrian obat
parameters:
- in: path
name: uid
required: true
schema:
type: string
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/antrian_obat'
put:
tags:
- Antrian Obat
summary: untuk mengedit status antrian obat
parameters:
- name: uid
in: path
description: UID dari antrian obat
required: true
schema:
type: string
requestBody:
description: data body
content:
application/json:
schema:
$ref: '#/components/schemas/antrian_obat_put'
responses:
'200':
description: Success Edit
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/antrian_obat'
'400':
description: 'Input Gagal, data Posisi Sama'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/stok_obatPost'
example:
error:
kode_error: 5
pesan: Edit data gagal
data: null
respon: null
/detailantrianobat/{uid}/:
delete:
tags:
- Antrian Obat
summary: Delete Antrian Obat
parameters:
- in : path
name: uid
description: UID Detail Antiran obat
required: true
schema:
type: string
responses:
'200':
description: success Delete
content:
'application/json':
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: object
example:
error:
kode_error: 0
pesan : ""
data: null
respon: null
/jadwaldokter/:
get:
tags:
- Jadwal Dokter
summary: get all jadwal dokter
responses:
'200':
description: success operation
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/jadwal_dokter'
/jadwaldokter/{uid}:
post:
tags:
- Jadwal Dokter
summary: untuk menambah jadwal dokter
parameters:
- name: uid
in: path
description: UID jadwal dokter
required: true
schema:
type: string
requestBody:
description: data body jadwal dokter
content:
application/json:
schema:
$ref: '#/components/schemas/jadwal_dokter_post'
responses:
'201':
description: Success Add
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/jadwal_dokter'
'400':
description: 'Input Gagal, data Posisi Sama'
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
$ref: '#/components/schemas/jadwal_dokter'
example:
error:
kode_error: 4
pesan: Input data gagal
data: null
respon: null
components:
securitySchemes:
cookieAuth:
type: apiKey
in: cookie
name: SENANG_SYS
schemas:
jadwal_dokter:
type: object
properties:
uid:
type: string
sip:
type: string
uid_poli:
type: string
hari:
type: string
pattern: ^(SENIN|SELASA|RABU|KAMIS|JUMAT|SABTU|MINGGU)$
enum: [SENIN,SELASA,RABU,KAMIS,JUMAT,SABTU,MINGGU]
jam_mulai:
type: string
pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
jam_selesai:
type: string
pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
nama_poli:
type: string
nama_dokter:
type: string
jadwal_dokter_post:
type: object
properties:
uid_poli:
type: string
hari:
type: string
pattern: ^(SENIN|SELASA|RABU|KAMIS|JUMAT|SABTU|MINGGU)$
enum: [SENIN,SELASA,RABU,KAMIS,JUMAT,SABTU,MINGGU]
jam_mulai:
type: string
pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
jam_selesai:
type: string
pattern: ^([0-1][0-9]|2[0-3]):[0-5][0-9]$
akunuser:
type: object
properties:
error:
$ref: '#/components/schemas/errors'
respon:
type: array
items:
type: object
properties:
username:
type: string
role:
type: string
status:
type: string
akunuserPost:
type: object
properties:
username:
pattern: '^[A-z0-9_.]{4,20}$'
type: string
example: zainab
password:
pattern: '^.{4,100}$'
type: string
example: apasajaboleh
akunuserPUT:
type: object
properties:
username:
pattern: '^[A-z0-9_.]{4,20}$'
type: string
example: zainab
password:
pattern: '^.{4,100}$'
type: string
example: apasajaboleh
status:
type: string
example: USER
role:
pattern: '^.{4,100}$'
type: string
enum:
- AKTIF
- NONAKTIF
example: AKTIF
pasien:
type: object
properties:
nomor_rekam_medis:
type: string
nomor_identitas:
type: string
pattern: '^([A-Z]+)-(\\d{5,25})$'
enum:
- KTP
- BPJS
- KIA
- PASSPORT
example: SIM-235345784154
nama_pasien:
type: string
pattern: '^[\w ]{1,30}$'
tempat_lahir:
type: string
pattern: '^[\w ]{1,20}$'
tanggal_lahir:
type: string
pattern: '^\d{4}-\d{2}-\d{2}$'
jenis_kelamin:
type: string
status:
type: string
agama:
type: string
alamat:
type: string
pattern: '^$|^[\w,. ]+$'
kecamatan:
type: string
pattern: '^$|^[\w ]{1,20}$'
kelurahan:
type: string
pattern: '^$|^[\w ]{1,20}$'
kode_pos:
type: string
pattern: '$|^\d{5}$'
telepon:
type: string
pattern: '$|^\d{10,14}$'
handphone:
type: string
pattern: '^$|^\d{9,14}$'
pendidikan:
type: string
pekerjaan:
type: string
alamat_kantor:
type: string
nama_pj:
type: string
pattern: '^$|^[\w ]{1,30}$'
telepon_pj:
type: string
pattern: '^$|^\d{10,14}$'
handphone_pj:
type: string
pattern: '^$|^\d{9,14}$'
alamat_pj:
type: string
pattern: '^$|^[\w,. ]+$'
required:
- nomor_rekam_medis
- nomor_ktp
- tempat_lahir
- tanggal_lahir
- jenis_kelamin
logpasien:
type: object
properties:
UID:
type: string
nomor_rekam_medis:
type: string
waktu_log:
type: string
jenis_log:
type: string
detail_log:
type: object
description: 'bisa diisi apa saja, be creative'
logpasienPOST:
type: object
properties:
nomor_rekam_medis:
type: string
jenis_log:
type: string
detail_log:
type: object
description: 'bisa diisi apa saja, be creative'
dokter:
type: object
properties:
sip:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_dokter:
type: string
pattern: '^[A-z ,.]{1,100}$'
spesialis:
type: string
pattern: '^[A-z ]{1,30}$'
status:
type: string
enum:
- AKTIF
- NONAKTIF
jadwal_dokter:
type: array
items:
$ref: '#/components/schemas/jadwal_dokter'
dokterPOST:
type: object
properties:
sip:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_dokter:
type: string
pattern: '^[A-z ,.]{1,100}$'
spesialis:
type: string
pattern: '^[A-z ]{1,30}$'
dokterPUT:
type: object
properties:
sip:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_dokter:
type: string
pattern: '^[A-z ,.]{1,100}$'
spesialis:
type: string
pattern: '^[A-z ]{1,30}$'
status:
type: string
enum:
- AKTIF
- NONAKTIF
perawat:
type: object
properties:
sik:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_perawat:
type: string
unit:
type: string
pendidikan:
type: string
status:
type: string
enum:
- AKTIF
- NONAKTIF
perawatPOST:
type: object
properties:
sik:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_perawat:
type: string
unit:
type: string
pendidikan:
type: string
perawatPUT:
type: object
properties:
sik:
type: string
pattern: '^[A-z0-9/.-]{1,30}$'
str:
type: string
username:
type: string
pattern: '^[A-z0-9_.]{4,20}$'
masa_berakhir:
type: string
pattern: '^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$'
nama_perawat:
type: string
unit:
type: string
pendidikan:
type: string
status:
type: string
enum:
- AKTIF
- NONAKTIF
cppt:
type: object
properties:
uid:
type: string
nomor_rekam_medis:
type: string
username_pengisi:
type: string
waktu_isi:
type: string
detail_cppt:
type: object
status_pasien:
type: string
revisi:
type: object
cpptPOST:
type: object
properties:
username_pengisi:
type: string
waktu_isi:
type: string
detail_cppt:
type: object
status_pasien:
type: string
revisicpptPOST:
type: object
properties:
username_pengisi:
type: string
detail_revisi_cppt:
type: object
revisicppt:
type: object
properties:
uid:
type: string
waktu_isi:
type: string
detail_revisi_cppt:
type: object
tindakan:
type: object
properties:
kode_tindakan:
type: string
pattern: '^[A-z0-9.]{1,10}$'
nama_tindakan:
type: string
pattern: '^[A-z ]{1,30}$'
biaya_tindakan:
type: integer
pattern: ^\\d+$
keterangan:
type: string
logtransaksi:
type: object
properties:
uid:
type: string
username_pengisi:
type: string
jenis_pembayaran:
type: string
waktu_transaksi:
type: string
status_transaksi:
type: string
diskon:
type: string
keterangan:
type: string
total_biaya:
type: string
nama_pasien:
type: string
detail_transaksi:
$ref: '#/components/schemas/detail_transaksi'
logtransaksiPOST:
type: object
properties:
jenis_pembayaran:
type: string
enum:
- TUNAI
- KREDIT
status_transaksi:
type: string
enum:
- MENUNGGU
- BATAL
- SELESAI
diskon:
type: string
keterangan:
type: string
nomor_rekam_medis:
type: string
detail_transaksi:
$ref: '#/components/schemas/detail_transaksiPOST'
logtransaksiPUT:
type: object
properties:
UID:
type: string
status_transaksi:
type: string
waktuTransaksi:
type: string
detail_transaksi:
type: object
properties:
uid:
type: string
item_transaksi:
type: string
harga_transaksi:
type: string
jenis_item:
type: string
enum:
- TINDAKAN
- OBAT
jumlah:
type: string
detail_transaksiPOST:
type: object
properties:
item_transaksi:
type: string
harga_transaksi:
type: integer
jenis_item:
type: string
enum:
- TINDAKAN
- OBAT
jumlah:
type: integer
poli:
type: object
properties:
uid:
type: string
nama_poli:
type: string
pattern: '^[A-z ]{1,20}$'
keterangan:
type: string
poliPOST:
type: object
properties:
nama_poli:
type: string
pattern: '^[A-z ]{1,20}$'
keterangan:
type: string
obat:
type: object
properties:
uid:
type: string
nama_obat:
type: string
pattern: '^[A-z0-9 ]{1,30}$'
jenis_obat:
type: string
pattern: '^[A-z ]{1,20}$'
satuan:
type: string
pattern: '^[A-z ]{1,20}$'
harga:
type: integer
pattern: '^\\d{3,}$'
batas_minimum_stok:
type: integer
pattern: '^\\d{1,}$'
keterangan:
type: string
stok_obat:
type: array
items:
$ref: '#/components/schemas/stok_obat'
obatPOST:
type: object
properties:
nama_obat:
type: string
pattern: '^[A-z0-9 ]{1,30}$'
jenis_obat:
type: string
pattern: '^[A-z ]{1,20}$'
satuan:
type: string
pattern: '^[A-z ]{1,20}$'
harga:
type: integer
pattern: '^\\d{3,}$'
batas_minimum_stok:
type: integer
pattern: '^\\d{1,}$'
keterangan:
type: string
stok_obat:
type: object
properties:
uid:
type: string
posisi:
type: string
pattern: '^[A-z0-9 ]{1,30}$'
jumlah_stok:
type: integer
pattern: '^\\d{1,}$'
kadaluarsa:
type: string
pattern: '^\\d{4}-\\d{2}-\\d{2}$'
keterangan:
type: string
stok_obatPost:
type: object
properties:
posisi:
type: string
pattern: '^[A-z0-9 ]{1,30}$'
jumlah_stok:
type: integer
pattern: '^\\d{1,}$'
kadaluarsa:
type: string
pattern: '^\\d{4}-\\d{2}-\\d{2}$'
keterangan:
type: string
antrian_obat:
type: object
properties:
uid:
type: string
nomor_antrian:
type: integer
nomor_rekam_medis:
type: string
waktu_daftar:
type: string
waktu_selesai:
type: string
status:
type: string
keterangan:
type: string
pasien:
type: string
detail_antrian_obat:
$ref: '#/components/schemas/detail_antrian_obat'
antrian_obat_put:
type: object
properties:
status:
type: string
enum: [SELESAI,BATAL,MENUNGGU]
detail_antrian_obat:
type: object
properties:
uid:
type: string
uid_obat:
type: string
uid_stok_obat:
type: string
nama_obat:
type: string
jenis_obat:
type: string
satuan:
type: string
harga:
type: integer
jumlah:
type: integer
keterangan:
type: string
errors:
type: object
properties:
kode_error:
type: integer
pesan:
type: string
data:
type: string
security:
- cookieAuth: []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment