feat (therapy-protocol): add verification

This commit is contained in:
dpurbosakti
2025-11-14 14:16:07 +07:00
parent 1c04ff23f6
commit d03c1c7a93
5 changed files with 167 additions and 41 deletions

No files matched your search

@@ -30,3 +30,7 @@ type TherapyProtocol struct {
DurationUnit_Code *common.TimeUnitCode `json:"durationUnit_code" gorm:"size:10"`
Status_Code *common.DataVerifiedCode `json:"status_code" gorm:"size:10"`
}
func (d TherapyProtocol) IsNew() bool {
return d.Status_Code != nil && *d.Status_Code == common.DVCNew
}