testing
This commit is contained in:
No files matched your search
@@ -118,7 +118,6 @@ func Create(input e.CreateDto) (*d.Data, error) {
|
||||
// insert vclaimReference
|
||||
if vr := input.VclaimReference; vr != nil {
|
||||
t, _ := time.Parse("2006-01-02", vr.TglRujukan)
|
||||
|
||||
_, err = uv.CreateData(ev.CreateDto{
|
||||
Encounter_Id: &data.Id,
|
||||
Date: &t,
|
||||
@@ -136,8 +135,10 @@ func Create(input e.CreateDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
dataEncounter, err := ReadDetailData(e.ReadDetailDto{
|
||||
Id: uint16(data.Id),
|
||||
Includes: "Adm_Employee.User,Patient.Person.Relatives,Patient.Person.VclaimMember,VclaimReference"},
|
||||
Id: data.Id,
|
||||
Includes: "Adm_Employee.User,Patient.Person.Relatives," +
|
||||
"Patient.Person.VclaimMember,VclaimReference," +
|
||||
"Patient.Person.Contacts,Patient.Person.Addresses"},
|
||||
&event, tx)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -311,7 +312,7 @@ func Update(input e.UpdateDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
dataEncounter, err := ReadDetailData(e.ReadDetailDto{
|
||||
Id: uint16(data.Id),
|
||||
Id: data.Id,
|
||||
Includes: "Adm_Employee.User,Patient.Person.Relatives,Patient.Person.VclaimMember"},
|
||||
&event, tx)
|
||||
if err != nil {
|
||||
@@ -429,7 +430,7 @@ func Delete(input e.DeleteDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
func CheckOut(input e.DischargeDto) (*d.Data, error) {
|
||||
rdDto := e.ReadDetailDto{Id: uint16(input.Id), Includes: "Ambulatory,Rehab"}
|
||||
rdDto := e.ReadDetailDto{Id: input.Id, Includes: "Ambulatory,Rehab"}
|
||||
var data *e.Encounter
|
||||
var err error
|
||||
|
||||
@@ -516,7 +517,7 @@ func CheckOut(input e.DischargeDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
dataEncounter, err := ReadDetailData(e.ReadDetailDto{
|
||||
Id: uint16(data.Id),
|
||||
Id: data.Id,
|
||||
Includes: "DeathCause"},
|
||||
&event, tx)
|
||||
if err != nil {
|
||||
@@ -658,7 +659,7 @@ func UpdateStatusCode(input e.UpdateStatusDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
func CheckIn(input e.CheckinDto) (*d.Data, error) {
|
||||
rdDto := e.ReadDetailDto{Id: uint16(input.Id), Includes: "Rehab,Ambulatory"}
|
||||
rdDto := e.ReadDetailDto{Id: input.Id, Includes: "Rehab,Ambulatory"}
|
||||
var data *e.Encounter
|
||||
var err error
|
||||
|
||||
@@ -743,7 +744,7 @@ func CheckIn(input e.CheckinDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
dataEncounter, err := ReadDetailData(e.ReadDetailDto{
|
||||
Id: uint16(data.Id),
|
||||
Id: data.Id,
|
||||
Includes: "Adm_Employee.User"},
|
||||
&event, tx)
|
||||
if err != nil {
|
||||
@@ -776,7 +777,7 @@ func CheckIn(input e.CheckinDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
func RequestSwitchUnit(input e.SwitchUnitDto) (*d.Data, error) {
|
||||
rdDto := e.ReadDetailDto{Id: uint16(input.Id), Includes: "Responsible_Doctor"}
|
||||
rdDto := e.ReadDetailDto{Id: input.Id, Includes: "Responsible_Doctor"}
|
||||
var data *e.Encounter
|
||||
var err error
|
||||
|
||||
@@ -865,7 +866,7 @@ func RequestSwitchUnit(input e.SwitchUnitDto) (*d.Data, error) {
|
||||
}
|
||||
|
||||
func ApproveSwitchUnit(input e.ApproveUnitDto) (*d.Data, error) {
|
||||
rdDto := e.ReadDetailDto{Id: uint16(input.Id), Includes: "Responsible_Doctor"}
|
||||
rdDto := e.ReadDetailDto{Id: input.Id, Includes: "Responsible_Doctor"}
|
||||
var data *e.Encounter
|
||||
var err error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user