mdpasien add edit
This commit is contained in:
@@ -12,5 +12,7 @@ type CustomTextFieldv2Prm struct {
|
||||
Type string `default:"text"`
|
||||
Value string `default:""`
|
||||
ErrorMsg string `default:""`
|
||||
Min string
|
||||
Max string
|
||||
ID string
|
||||
}
|
||||
|
||||
11
models/customdatepicker.models.go
Normal file
11
models/customdatepicker.models.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
type CustomDatePickerPrm struct {
|
||||
Label string `default:"Label"`
|
||||
Name string `default:"name"`
|
||||
Placeholder string `default:"Placeholder"`
|
||||
Type string `default:"text"`
|
||||
Value string `default:""`
|
||||
ErrorMsg string `default:""`
|
||||
ID string
|
||||
}
|
||||
9
models/customuploadfoto.models.go
Normal file
9
models/customuploadfoto.models.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package models
|
||||
|
||||
type CustomUploadFotoPrm struct {
|
||||
ID string `desc:"ID"`
|
||||
Name string `desc:"name"`
|
||||
Accept string `desc:"ekstension acc (.png, .jpg, .jpeg)"`
|
||||
Label string `desc:"label title"`
|
||||
LinkFoto string
|
||||
}
|
||||
@@ -1,5 +1,11 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"mime/multipart"
|
||||
|
||||
"github.com/a-h/templ"
|
||||
)
|
||||
|
||||
type Pasien struct {
|
||||
M_PatientID int `db:"M_PatientID"`
|
||||
M_PatientNoReg string `db:"M_PatientNoReg"`
|
||||
@@ -45,3 +51,107 @@ type Pasien struct {
|
||||
M_PatientDeletedUserID string `db:"M_PatientDeletedUserID"`
|
||||
M_PatientDeleted string `db:"M_PatientDeleted"`
|
||||
}
|
||||
|
||||
type SapaanPasien struct {
|
||||
M_TitleID int `db:"M_TitleID"`
|
||||
M_TitleName string `db:"M_TitleName"`
|
||||
M_TitleGender string `db:"M_TitleGender"`
|
||||
M_TitleOrder string `db:"M_TitleOrder"`
|
||||
M_TitleIsActive string `db:"M_TitleIsActive"`
|
||||
M_TitleCreated string `db:"M_TitleCreated"`
|
||||
M_TitleCreatedUserID string `db:"M_TitleCreatedUserID"`
|
||||
M_TitleLastUpdated string `db:"M_TitleLastUpdated"`
|
||||
M_TitleLastUpdatedUserID string `db:"M_TitleLastUpdatedUserID"`
|
||||
M_TitleDeleted string `db:"M_TitleDeleted"`
|
||||
M_TitleDeletedUserID string `db:"M_TitleDeletedUserID"`
|
||||
}
|
||||
|
||||
type PasienFormComponent struct {
|
||||
IDComponent string
|
||||
Link string
|
||||
HxTarget string
|
||||
HxSwap string
|
||||
HxInclude string
|
||||
ModalID string
|
||||
ModalTitle string
|
||||
DialogBody templ.Component
|
||||
DialogAction templ.Component
|
||||
ButtonCLose templ.Component
|
||||
}
|
||||
|
||||
type PasineFormBodyComponent struct {
|
||||
IDComponentUpload string
|
||||
IDForm string
|
||||
SapaanErr string `json:"sapaanErr"`
|
||||
SapaanItems templ.Component
|
||||
ImbuhanAwalErr string `json:"imbuhanAwalErr"`
|
||||
ImbuhanAwalVal string `json:"imbuhanAwalVal"`
|
||||
NamaErr string `json:"namaErr"`
|
||||
NamaVal string `json:"namaVal"`
|
||||
ImbuhanAkhirErr string `json:"imbuhanAkhirErr"`
|
||||
ImbuhanAkhirVal string `json:"imbuhanAkhirVal"`
|
||||
GenderErr string `json:"genderErr"`
|
||||
GenderItems templ.Component
|
||||
DobErr string `json:"dobErr"`
|
||||
DobVal string `json:"dobVal"`
|
||||
YearErr string `json:"yearErr"`
|
||||
YearVal string `json:"yearVal"`
|
||||
MonthErr string `json:"monthErr"`
|
||||
MonthVal string `json:"monthVal"`
|
||||
DayErr string `json:"DayErr"`
|
||||
DayVal string `json:"DayVal"`
|
||||
GoldarErr string `json:"goldarErr"`
|
||||
GoldarItems templ.Component
|
||||
RhesusErr string `json:"rhesusErr"`
|
||||
RhesusItems templ.Component
|
||||
PekerjaanErr string `json:"pekerjaanErr"`
|
||||
PekerjaanVal string `json:"pekerjaanVal"`
|
||||
DepartementErr string `json:"departementErr"`
|
||||
DepartementVal string `json:"departementVal"`
|
||||
PosisiErr string `json:"posisiErr"`
|
||||
PosisiVal string `json:"posisiVal"`
|
||||
PendidikanErr string `json:"pendidikanErr"`
|
||||
PendidikanItems templ.Component
|
||||
EtnisErr string `json:"etnisErr"`
|
||||
EtnisItems templ.Component
|
||||
IDErr string `json:"idErr"`
|
||||
IDItems templ.Component
|
||||
NoIDErr string `json:"noIDErr"`
|
||||
NoIDhVal string `json:"noIDhVal"`
|
||||
HpErr string `json:"hpErr"`
|
||||
HpVal string `json:"hpVal"`
|
||||
EmailErr string `json:"emailErr"`
|
||||
EmailVal string `json:"emailVal"`
|
||||
HxOnLoad templ.ComponentScript
|
||||
HxSwapOOB string
|
||||
LinkFoto string
|
||||
IDPasien string
|
||||
CitizenshipVal string `json:"CitizenshipVal"`
|
||||
}
|
||||
|
||||
type PasienFormServicesPrm struct {
|
||||
PasienID string
|
||||
Sapaan string
|
||||
Imbuhanawal string
|
||||
Nama string
|
||||
Imbuhanakhir string
|
||||
Gender string
|
||||
Dob string
|
||||
Tahun string
|
||||
Bulan string
|
||||
Hari string
|
||||
Goldar string
|
||||
Rhesus string
|
||||
Pekerjaan string
|
||||
Departement string
|
||||
Posisi string
|
||||
Pendidikan string
|
||||
Nationality string
|
||||
Etnis string
|
||||
Identitas string
|
||||
Nomoridentitas string
|
||||
Hp string
|
||||
Email string
|
||||
UserID string
|
||||
Foto *multipart.FileHeader
|
||||
}
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
type TerminologyV0 struct {
|
||||
ResourceType string `db:"resource_type"`
|
||||
AttributePath string `db:"attribute_path"`
|
||||
Code string `db:"code"`
|
||||
ParentCode string `db:"parent_code"`
|
||||
Display string `db:"display"`
|
||||
DisplayEn string `db:"display_en"`
|
||||
CodeSystem string `db:"code_system"`
|
||||
OrderNo uint `db:"order_no"`
|
||||
FtIndex string `db:"ft_index"`
|
||||
UseInd bool `db:"use_ind"`
|
||||
Description string `db:"description"`
|
||||
StatusCd string `db:"status_cd"`
|
||||
CreatedDttm string `db:"created_dttm"`
|
||||
CreatedUserID uint `db:"created_user_id"`
|
||||
UpdatedDttm string `db:"updated_dttm"`
|
||||
UpdatedUserID uint `db:"updated_user_id"`
|
||||
NullifiedDttm string `db:"nullified_dttm"`
|
||||
NullifiedUserID uint `db:"nullified_user_id"`
|
||||
ResourceType string `db:"resource_type"`
|
||||
AttributePath string `db:"attribute_path"`
|
||||
Code string `db:"code"`
|
||||
ParentCode string `db:"parent_code"`
|
||||
Display string `db:"display"`
|
||||
DisplayEn string `db:"display_en"`
|
||||
CodeSystem string `db:"code_system"`
|
||||
OrderNo uint `db:"order_no"`
|
||||
FtIndex sql.NullString `db:"ft_index"`
|
||||
UseInd bool `db:"use_ind"`
|
||||
Description sql.NullString `db:"description"`
|
||||
StatusCd string `db:"status_cd"`
|
||||
CreatedDttm string `db:"created_dttm"`
|
||||
CreatedUserID uint `db:"created_user_id"`
|
||||
UpdatedDttm string `db:"updated_dttm"`
|
||||
UpdatedUserID uint `db:"updated_user_id"`
|
||||
NullifiedDttm string `db:"nullified_dttm"`
|
||||
NullifiedUserID uint `db:"nullified_user_id"`
|
||||
}
|
||||
|
||||
type TerminologyParamv0 struct {
|
||||
|
||||
Reference in New Issue
Block a user