wip
This commit is contained in:
@@ -0,0 +1,131 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
padding: 2rem 3rem;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
.border-table,
|
||||||
|
.border-table td,
|
||||||
|
.border-table th {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
.section-title {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 0rem;
|
||||||
|
}
|
||||||
|
.data-label {
|
||||||
|
width: 9rem;
|
||||||
|
}
|
||||||
|
.data-colon {
|
||||||
|
width: 0.1234rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: Arial, sans-serif; line-height: 1.4">
|
||||||
|
<table style="margin-top: 1rem;">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 9rem;">
|
||||||
|
Tanggal Terbit
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
No. RM
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Nama
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Tanggal Lahir
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<hr style="margin: 20px 0" />
|
||||||
|
<h1 style="
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1rem;
|
||||||
|
margin: 0;
|
||||||
|
">
|
||||||
|
FORM A
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h4 class="section-title">Kajian Awal Medis:</i></h4>
|
||||||
|
<table style="margin-top: 0.3rem;">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
☑ Kasus Dengan Penyakit Kronis, Katastropik (memerlukan Pembiayaan Tinggi), Terminal
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
▢ Status Fungsional Rendah, Kebutuhan Bantuan ADL(Activity Daily Living) Yang Tinggi
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h4 class="section-title">ASSESMEN:</h4>
|
||||||
|
<table style="margin-top: 0.3rem;">
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h4 class="section-title">IDENTIFIKASI MASALAH:</h4>
|
||||||
|
<table style="margin-top: 0.3rem;">
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h4 class="section-title">PERENCANAAN:</h4>
|
||||||
|
<table style="margin-top: 0.3rem;">
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<table style="margin-top: 3rem;">
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align: center;width: 15rem;">
|
||||||
|
2025-10-08 16:06:22
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td style="text-align: center;height: 10rem;width: 15rem;">
|
||||||
|
GATOT SUBROTO,AMd.Kep
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div style="height: 3rem;"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
padding: 2rem 3rem;
|
||||||
|
}
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse
|
||||||
|
}
|
||||||
|
td {
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.border-table,
|
||||||
|
.border-table td,
|
||||||
|
.border-table th {
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
.section-title {
|
||||||
|
margin-top: 1rem;
|
||||||
|
margin-bottom: 0rem;
|
||||||
|
}
|
||||||
|
.data-label {
|
||||||
|
width: 9rem;
|
||||||
|
}
|
||||||
|
.data-colon {
|
||||||
|
width: 0.1234rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: Arial, sans-serif; line-height: 1.4">
|
||||||
|
<table style="margin-top: 1rem;">
|
||||||
|
<tr>
|
||||||
|
<td style="width: 9rem;">
|
||||||
|
Tanggal Terbit
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
No. RM
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Nama
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
Tanggal Lahir
|
||||||
|
</td>
|
||||||
|
<td class="data-colon">: </td>
|
||||||
|
<td>{{ .Repalcable }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<hr style="margin: 20px 0" />
|
||||||
|
<h1 style="
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1rem;
|
||||||
|
margin: 0;
|
||||||
|
">
|
||||||
|
FORM B
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<table class="border-table" style="margin-top: 1rem;">
|
||||||
|
<tr>
|
||||||
|
<th style="width: 2rem;">
|
||||||
|
NO
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Tanggal/jam
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Implementasi, Monitoring, Fasilitasi, koordinasi, komunikasi dan kolaborasi, advokasi, hasil pelayanan,
|
||||||
|
Terminasi
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
MPP
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
1
|
||||||
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
2025-10-08 16:08:18
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<ul>
|
||||||
|
<li><b>Implementasi: </b>Pemantauan harian terhadap penggunaan alat medis (oksigen dan alat bantu
|
||||||
|
jalan) serta kepatuhan terapi.</li>
|
||||||
|
<li><b>Monitoring: </b>Observasi respon pasien terhadap terapi dan edukasi keluarga untuk perawatan
|
||||||
|
mandiri di rumah.</li>
|
||||||
|
<li><b>Fasilitasi: </b>Menyediakan alat bantu sesuai kebutuhan dan menghubungkan pasien dengan
|
||||||
|
layanan rehabilitasi medik.</li>
|
||||||
|
<li><b>Koordinasi: </b>Melibatkan dokter penanggung jawab, perawat, dan keluarga dalam penyusunan
|
||||||
|
rencana tindak lanjut.</li>
|
||||||
|
<li><b>Komunikasi dan Kolaborasi: </b>Diskusi rutin antar profesi untuk evaluasi perkembangan
|
||||||
|
pasien.</li>
|
||||||
|
<li><b>Advokasi: </b>Memberikan dukungan informasi dan hak pasien terkait rencana pulang dan
|
||||||
|
kesinambungan terapi.</li>
|
||||||
|
<li><b>Hasil Pelayanan: </b>Pasien menunjukkan perbaikan fungsi mobilitas, tingkat kepatuhan terapi
|
||||||
|
meningkat.</li>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3rem;padding: 0.3rem;text-align: center;">
|
||||||
|
GATOT SUBROTO,AMd.Kep
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div style="height: 3rem;"></div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -84,3 +84,39 @@ func ToResponseList(data []Screening) []ResponseDto {
|
|||||||
}
|
}
|
||||||
return resp
|
return resp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type FormA struct {
|
||||||
|
AgeAtRisk bool `json:"ageAtRisk"` // Usia Dengan Risiko
|
||||||
|
LowCognitiveFunction bool `json:"lowCognitiveFunction"` // Pasien Dengan Fungsi Kognitif Rendah
|
||||||
|
HighRiskPatient bool `json:"highRiskPatient"` // Pasien Dengan Risiko Tinggi
|
||||||
|
HighComplaintPotential bool `json:"highComplaintPotential"` // Potensi Komplain Tinggi (Medik dan Non Medik)
|
||||||
|
ChronicOrCatastrophicOrTerminal bool `json:"chronicOrCatastrophicOrTerminal"` // Kasus Dengan Penyakit Kronis, Katastropik, Terminal
|
||||||
|
LowFunctionalStatus bool `json:"lowFunctionalStatus"` // Status Fungsional Rendah, Kebutuhan Bantuan ADL Tinggi
|
||||||
|
HistoryOfMedicalDeviceUse bool `json:"historyOfMedicalDeviceUse"` // Pasien Dengan Riwayat Penggunaan Peralatan Medis Masa Lalu
|
||||||
|
MentalOrSocialIssues bool `json:"mentalOrSocialIssues"` // Riwayat Gangguan Mental, Bunuh Diri, Krisis Keluarga, Isu Sosial
|
||||||
|
FrequentERVisitsOrReadmission bool `json:"frequentERVisitsOrReadmission"` // Sering Masuk IGD, Readmisi RS
|
||||||
|
HighCareCostEstimate bool `json:"highCareCostEstimate"` // Perkiraan Asuhan Dengan Biaya Tinggi
|
||||||
|
ComplexFinancingSystem bool `json:"complexFinancingSystem"` // Kemungkinan Sistem Pembiayaan Yang Kompleks
|
||||||
|
AboveAverageLengthOfStay bool `json:"aboveAverageLengthOfStay"` // Kasus Yang Melebihi Rata-Rata Lama Dirawat
|
||||||
|
ImportantOrHighRiskDischargePlanning bool `json:"importantOrHighRiskDischargePlanning"` // Rencana Pemulangan Penting / Kontinuitas Pelayanan
|
||||||
|
Stagnation bool `json:"stagnation"` // Stagnasi
|
||||||
|
}
|
||||||
|
|
||||||
|
type ProblemIdentification struct {
|
||||||
|
CareNotFollowingGuidelines bool `json:"careNotFollowingGuidelines"` // Tingkat Asuhan Tidak Sesuai Panduan/ Norma
|
||||||
|
OverUtilization bool `json:"overUtilization"` // Over Utilization Pelayanan
|
||||||
|
UnderUtilization bool `json:"underUtilization"` // Under Utilization Pelayanan
|
||||||
|
PatientNonCompliance bool `json:"patientNonCompliance"` // Ketidakpatuhan Pasien
|
||||||
|
InadequateEducation bool `json:"inadequateEducation"` // Edukasi Kurang Memadai
|
||||||
|
LackOfFamilySupport bool `json:"lackOfFamilySupport"` // Kurang Dukungan Keluarga
|
||||||
|
DecreasedDetermination bool `json:"decreasedDetermination"` // Penurunan Determinasi Ketika Komplikasi Meningkat
|
||||||
|
FinancialDifficultyDuringComplications bool `json:"financialDifficultyDuringComplications"` // Kendala Keuangan Ketika Komplikasi Meningkat
|
||||||
|
DischargeCriteriaNotMetOrDelayed bool `json:"dischargeCriteriaNotMetOrDelayed"` // Pemulangan/ Rujukan Belum Memenuhi Kriteria/ Ditunda
|
||||||
|
}
|
||||||
|
|
||||||
|
type AssessmentForm struct {
|
||||||
|
Screening Screening `json:"screening"`
|
||||||
|
AssessmentDetail string `json:"assessmentDetail"` // Masukkan detail assesmen
|
||||||
|
ProblemIdentification ProblemIdentification `json:"problemIdentification"`
|
||||||
|
PlanningDetail string `json:"planningDetail"` // Masukkan detail perencanaan
|
||||||
|
}
|
||||||
|
|||||||
@@ -18,3 +18,5 @@ type Screening struct {
|
|||||||
Value *string `json:"value"`
|
Value *string `json:"value"`
|
||||||
FileUrl *string `json:"fileUrl" gorm:"size:1024"`
|
FileUrl *string `json:"fileUrl" gorm:"size:1024"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// func (d Screening) UnMarshal(data []byte) (error {}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
rw "github.com/karincake/risoles"
|
rw "github.com/karincake/risoles"
|
||||||
sf "github.com/karincake/semprit"
|
// sf "github.com/karincake/semprit"
|
||||||
|
|
||||||
// ua "github.com/karincake/tumpeng/auth/svc"
|
// ua "github.com/karincake/tumpeng/auth/svc"
|
||||||
|
|
||||||
@@ -34,47 +34,47 @@ func (obj myBase) Create(w http.ResponseWriter, r *http.Request) {
|
|||||||
rw.DataResponse(w, res, err)
|
rw.DataResponse(w, res, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (obj myBase) GetList(w http.ResponseWriter, r *http.Request) {
|
// func (obj myBase) GetList(w http.ResponseWriter, r *http.Request) {
|
||||||
dto := e.ReadListDto{}
|
// dto := e.ReadListDto{}
|
||||||
sf.UrlQueryParam(&dto, *r.URL)
|
// sf.UrlQueryParam(&dto, *r.URL)
|
||||||
res, err := u.ReadList(dto)
|
// res, err := u.ReadList(dto)
|
||||||
rw.DataResponse(w, res, err)
|
// rw.DataResponse(w, res, err)
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (obj myBase) GetDetail(w http.ResponseWriter, r *http.Request) {
|
// func (obj myBase) GetDetail(w http.ResponseWriter, r *http.Request) {
|
||||||
id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
// id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
||||||
if id <= 0 {
|
// if id <= 0 {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
dto := e.ReadDetailDto{}
|
// dto := e.ReadDetailDto{}
|
||||||
dto.Id = uint16(id)
|
// dto.Id = uint16(id)
|
||||||
res, err := u.ReadDetail(dto)
|
// res, err := u.ReadDetail(dto)
|
||||||
rw.DataResponse(w, res, err)
|
// rw.DataResponse(w, res, err)
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (obj myBase) Update(w http.ResponseWriter, r *http.Request) {
|
// func (obj myBase) Update(w http.ResponseWriter, r *http.Request) {
|
||||||
id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
// id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
||||||
if id <= 0 {
|
// if id <= 0 {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
dto := e.UpdateDto{}
|
// dto := e.UpdateDto{}
|
||||||
if res := rw.ValidateStructByIOR(w, r.Body, &dto); !res {
|
// if res := rw.ValidateStructByIOR(w, r.Body, &dto); !res {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
dto.Id = uint16(id)
|
// dto.Id = uint16(id)
|
||||||
res, err := u.Update(dto)
|
// res, err := u.Update(dto)
|
||||||
rw.DataResponse(w, res, err)
|
// rw.DataResponse(w, res, err)
|
||||||
}
|
// }
|
||||||
|
|
||||||
func (obj myBase) Delete(w http.ResponseWriter, r *http.Request) {
|
// func (obj myBase) Delete(w http.ResponseWriter, r *http.Request) {
|
||||||
id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
// id := rw.ValidateInt(w, "id", r.PathValue("id"))
|
||||||
if id <= 0 {
|
// if id <= 0 {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
|
|
||||||
dto := e.DeleteDto{}
|
// dto := e.DeleteDto{}
|
||||||
dto.Id = uint16(id)
|
// dto.Id = uint16(id)
|
||||||
res, err := u.Delete(dto)
|
// res, err := u.Delete(dto)
|
||||||
rw.DataResponse(w, res, err)
|
// rw.DataResponse(w, res, err)
|
||||||
}
|
// }
|
||||||
|
|||||||
@@ -65,6 +65,13 @@ func (a AuthInfo) IsPharmacist() bool {
|
|||||||
return *a.Employee_Position_Code == string(ero.EPCPha)
|
return *a.Employee_Position_Code == string(ero.EPCPha)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (a AuthInfo) IsScreener() bool { // MPP, petugas skrining
|
||||||
|
if a.Employee_Position_Code == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return *a.Employee_Position_Code == string(ero.EPCScr)
|
||||||
|
}
|
||||||
|
|
||||||
// func (a AuthInfo) IsPayment() bool {
|
// func (a AuthInfo) IsPayment() bool {
|
||||||
// if a.Employee_Position_Code == nil {
|
// if a.Employee_Position_Code == nil {
|
||||||
// return false
|
// return false
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ func Create(input e.CreateDto) (*d.Data, error) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !input.AuthInfo.IsDoctor() && !input.AuthInfo.IsNurse() {
|
if !pu.Contains([]erc.ScreeningFormTypeCode{erc.SFTCB, erc.SFTCA}, input.Type) {
|
||||||
|
return errors.New("invalid screening form type")
|
||||||
|
}
|
||||||
|
|
||||||
|
if !input.AuthInfo.IsScreener() {
|
||||||
event.Status = "failed"
|
event.Status = "failed"
|
||||||
event.ErrInfo = pl.ErrorInfo{
|
event.ErrInfo = pl.ErrorInfo{
|
||||||
Code: "auth-forbidden",
|
Code: "auth-forbidden",
|
||||||
@@ -55,12 +59,21 @@ func Create(input e.CreateDto) (*d.Data, error) {
|
|||||||
input.Employee_Id = nil
|
input.Employee_Id = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if input.Type == erc.SFTCB {
|
switch input.Type {
|
||||||
|
case erc.SFTCA:
|
||||||
s, _, err := ReadListData(e.ReadListDto{FilterDto: e.FilterDto{Type: erc.SFTCA}}, &event, tx)
|
s, _, err := ReadListData(e.ReadListDto{FilterDto: e.FilterDto{Type: erc.SFTCA}}, &event, tx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(s) != 0 {
|
if len(s) > 0 {
|
||||||
|
return errors.New("screening form type A is already created for this encounter")
|
||||||
|
}
|
||||||
|
case erc.SFTCB:
|
||||||
|
s, _, err := ReadListData(e.ReadListDto{FilterDto: e.FilterDto{Type: erc.SFTCA}}, &event, tx)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if len(s) < 1 {
|
||||||
return errors.New("screening form type A is not created yet, please create it first")
|
return errors.New("screening form type A is not created yet, please create it first")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,12 +6,14 @@ package screening
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
e "simrs-vx/internal/domain/main-entities/screening"
|
e "simrs-vx/internal/domain/main-entities/screening"
|
||||||
|
erc "simrs-vx/internal/domain/references/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func setData[T *e.CreateDto | *e.UpdateDto](input T, data *e.Screening) {
|
func setData[T *e.CreateDto | *e.UpdateDto](input T, data *e.Screening) {
|
||||||
var inputSrc *e.CreateDto
|
var inputSrc *e.CreateDto
|
||||||
if inputT, ok := any(input).(*e.CreateDto); ok {
|
if inputT, ok := any(input).(*e.CreateDto); ok {
|
||||||
inputSrc = inputT
|
inputSrc = inputT
|
||||||
|
data.Status = erc.DVCValidated
|
||||||
} else {
|
} else {
|
||||||
inputTemp := any(input).(*e.UpdateDto)
|
inputTemp := any(input).(*e.UpdateDto)
|
||||||
inputSrc = &inputTemp.CreateDto
|
inputSrc = &inputTemp.CreateDto
|
||||||
|
|||||||
Reference in New Issue
Block a user