Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into feat/file-generator-169
This commit is contained in:
@@ -34,27 +34,28 @@ import (
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Patient_Id *uint `json:"patient_id"`
|
||||
RegisteredAt *time.Time `json:"registeredAt"`
|
||||
Class_Code ere.EncounterClassCode `json:"class_code" validate:"maxLength=10"`
|
||||
SubClass_Code *string `json:"subClass_code" validate:"maxLength=10"` // for sub
|
||||
Infra_Code *string `json:"infra_code"` // for inpatient
|
||||
Unit_Code *string `json:"unit_code"`
|
||||
Specialist_Code *string `json:"specialist_code"`
|
||||
Subspecialist_Code *string `json:"subspecialist_code"`
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code" gorm:"size:10"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
Member_Number *string `json:"member_number" validate:"maxLength=20"`
|
||||
Ref_Number *string `json:"ref_number" validate:"maxLength=20"`
|
||||
Trx_Number *string `json:"trx_number" validate:"maxLength=20"`
|
||||
Appointment_Doctor_Code *string `json:"appointment_doctor_code"`
|
||||
Adm_Employee_Id *uint `json:"-"`
|
||||
Responsible_Doctor_Code *string `json:"responsible_doctor_code"`
|
||||
RefSource_Name *string `json:"refSource_name" validate:"maxLength=100"`
|
||||
Appointment_Id *uint `json:"appointment_id"`
|
||||
RefTypeCode ere.RefTypeCode `json:"refTypeCode"`
|
||||
NewStatus bool `json:"newStatus"`
|
||||
Patient_Id *uint `json:"patient_id"`
|
||||
RegisteredAt *time.Time `json:"registeredAt"`
|
||||
Class_Code ere.EncounterClassCode `json:"class_code" validate:"maxLength=10"`
|
||||
SubClass_Code *string `json:"subClass_code" validate:"maxLength=10"` // for sub
|
||||
Infra_Code *string `json:"infra_code"` // for inpatient
|
||||
Unit_Code *string `json:"unit_code"`
|
||||
Specialist_Code *string `json:"specialist_code"`
|
||||
Subspecialist_Code *string `json:"subspecialist_code"`
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
PaymentMethod_Code ere.AllPaymentMethodCode `json:"paymentMethod_code" gorm:"size:10"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
Member_Number *string `json:"member_number" validate:"maxLength=20"`
|
||||
Ref_Number *string `json:"ref_number" validate:"maxLength=20"`
|
||||
Trx_Number *string `json:"trx_number" validate:"maxLength=20"`
|
||||
Appointment_Doctor_Code *string `json:"appointment_doctor_code"`
|
||||
Adm_Employee_Id *uint `json:"-"`
|
||||
Responsible_Doctor_Code *string `json:"responsible_doctor_code"`
|
||||
RefSource_Name *string `json:"refSource_name" validate:"maxLength=100"`
|
||||
Appointment_Id *uint `json:"appointment_id"`
|
||||
RefTypeCode ere.RefTypeCode `json:"refTypeCode"`
|
||||
NewStatus bool `json:"newStatus"`
|
||||
VclaimReference *TRujukan `json:"vclaimReference"`
|
||||
|
||||
Id uint `json:"-"`
|
||||
RecentEncounterAdm *Encounter `json:"-"` // if subClass_Code is rehab
|
||||
@@ -63,6 +64,18 @@ type CreateDto struct {
|
||||
pa.AuthInfo
|
||||
}
|
||||
|
||||
type TRujukan struct {
|
||||
NoSep string `json:"noSep"`
|
||||
TglRujukan string `json:"tglRujukan"`
|
||||
PpkDirujuk string `json:"ppkDirujuk"`
|
||||
JnsPelayanan string `json:"jnsPelayanan"`
|
||||
Catatan string `json:"catatan"`
|
||||
DiagRujukan string `json:"diagRujukan"`
|
||||
TipeRujukan string `json:"tipeRujukan"`
|
||||
PoliRujukan string `json:"poliRujukan"`
|
||||
User string `json:"user"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
@@ -127,6 +140,8 @@ type DischargeDto struct {
|
||||
AdmDischargeEducation *string `json:"admDischargeEducation"`
|
||||
DischargeReason *string `json:"dischargeReason"`
|
||||
DeathCause *string `json:"deathCause"`
|
||||
|
||||
pa.AuthInfo
|
||||
}
|
||||
|
||||
type CheckinDto struct {
|
||||
@@ -135,6 +150,8 @@ type CheckinDto struct {
|
||||
Adm_Employee_Id *uint `json:"adm_employee_id"`
|
||||
StartedAt *time.Time `json:"startedAt"`
|
||||
FinishedAt *time.Time `json:"finishedAt"`
|
||||
|
||||
pa.AuthInfo
|
||||
}
|
||||
|
||||
type SwitchUnitDto struct {
|
||||
@@ -161,7 +178,7 @@ type ResponseDto struct {
|
||||
Subspecialist *ess.Subspecialist `json:"subspecialist,omitempty"`
|
||||
Unit *eu.Unit `json:"unit,omitempty"`
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code"`
|
||||
PaymentMethod_Code ere.AllPaymentMethodCode `json:"paymentMethod_code"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
Member_Number *string `json:"member_number"`
|
||||
Ref_Number *string `json:"ref_number"`
|
||||
|
||||
@@ -42,7 +42,7 @@ type Encounter struct {
|
||||
VisitDate time.Time `json:"visitDate"`
|
||||
StartedAt *time.Time `json:"startedAt"`
|
||||
FinishedAt *time.Time `json:"finishedAt"`
|
||||
PaymentMethod_Code erc.PaymentMethodCode `json:"paymentMethod_code" gorm:"size:10"`
|
||||
PaymentMethod_Code ere.AllPaymentMethodCode `json:"paymentMethod_code" gorm:"size:10"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
InsuranceCompany *ei.InsuranceCompany `json:"insuranceCompany,omitempty" gorm:"foreignKey:InsuranceCompany_Code;references:Code"`
|
||||
Member_Number *string `json:"memberNumber" gorm:"unique;size:20"`
|
||||
|
||||
@@ -99,6 +99,7 @@ const (
|
||||
APMCJkmm AllPaymentMethodCode = "jkmm" // JKMM
|
||||
APMCSpm AllPaymentMethodCode = "spm" // SPM
|
||||
APMCPks AllPaymentMethodCode = "pks" // PKS
|
||||
APMCUmum AllPaymentMethodCode = "umum"
|
||||
|
||||
SRTCInternal SEPRefTypeCode = "internal" // Rujukan Internal
|
||||
SRTCExternal SEPRefTypeCode = "external" // Faskes Lain
|
||||
|
||||
@@ -112,6 +112,9 @@ const (
|
||||
RCNephew RelationshipCode = "nephew" // Keponakan
|
||||
RCGdChild RelationshipCode = "gd-child" // Cucu
|
||||
RCOther RelationshipCode = "other" // Lainnya
|
||||
RCFriend RelationshipCode = "friend" // Teman
|
||||
RCSpouse RelationshipCode = "spouse" // Pasangan (Suami / Istri)
|
||||
RCSelf RelationshipCode = "self" // Diri Sendiri
|
||||
|
||||
ALTCIdn AddressLocationTypeCode = "identity" // Sesuai Identitas
|
||||
ALTCDom AddressLocationTypeCode = "domicile" // Sesuai Domisili
|
||||
|
||||
@@ -65,7 +65,7 @@ type MPasien struct {
|
||||
NamaIbu string `json:"nama_ibu" gorm:"column:nama_ibu"`
|
||||
PendidikanAyah string `json:"pendidikan_ayah" gorm:"column:pendidikan_ayah"`
|
||||
PendidikanIbu string `json:"pendidikan_ibu" gorm:"column:pendidikan_ibu"`
|
||||
StIdentitasOrtu string `json:"st_identitas_ortu" gorm:"column:st_identitas_ortu"`
|
||||
StIdentitasOrtu uint `json:"st_identitas_ortu" gorm:"column:st_identitas_ortu"`
|
||||
NomrBaru *string `json:"nomr_baru" gorm:"column:nomr_baru"`
|
||||
KtpFile *string `json:"ktp_file" gorm:"column:ktp_file"`
|
||||
KkFile *string `json:"kk_file" gorm:"column:kk_file"`
|
||||
|
||||
@@ -16,7 +16,7 @@ type TPendaftaran struct {
|
||||
KeteranganStatus *uint `json:"keterangan_status" gorm:"column:keterangan_status"`
|
||||
Pasienbaru uint `json:"pasienbaru" gorm:"column:pasienbaru"`
|
||||
Nip string `json:"nip" gorm:"column:nip"`
|
||||
Idxdaftar uint `json:"idxdaftar" gorm:"column:idxdaftar"`
|
||||
Idxdaftar uint `json:"idxdaftar" gorm:"primaryKey;autoIncrement;column:idxdaftar"`
|
||||
Masukpoly *time.Time `json:"masukpoly" gorm:"column:masukpoly"`
|
||||
Keluarpoly *time.Time `json:"keluarpoly" gorm:"column:keluarpoly"`
|
||||
Ketrujuk string `json:"ketrujuk" gorm:"column:ketrujuk"`
|
||||
|
||||
Reference in New Issue
Block a user