27 lines
1.3 KiB
Go
27 lines
1.3 KiB
Go
package procedure
|
|
|
|
import (
|
|
"time"
|
|
|
|
"service/internal/satusehat/common"
|
|
)
|
|
|
|
type ProcedureRequest struct {
|
|
OrganizationID string `json:"organization_id,omitempty"`
|
|
ProcedureID string `json:"procedure_id,omitempty"`
|
|
Status string `json:"status" binding:"required,oneof=preparation in-progress not-done on-hold stopped completed entered-in-error unknown"`
|
|
Category []*common.CodeableConceptDTO `json:"category,omitempty"`
|
|
Code *common.CodeableConceptDTO `json:"code" binding:"required"`
|
|
Subject *common.ReferenceDTO `json:"subject" binding:"required"`
|
|
Encounter *common.ReferenceDTO `json:"encounter,omitempty"`
|
|
PerformedDateTime *time.Time `json:"performed_date_time,omitempty"`
|
|
PerformedStart *time.Time `json:"performed_start,omitempty"`
|
|
PerformedEnd *time.Time `json:"performed_end,omitempty"`
|
|
Performer []common.ReferenceDTO `json:"performer,omitempty"`
|
|
ReasonCode []*common.CodeableConceptDTO `json:"reason_code,omitempty"`
|
|
BodySite []*common.CodeableConceptDTO `json:"body_site,omitempty"`
|
|
Note []string `json:"note,omitempty"`
|
|
}
|
|
|
|
type ProcedurePatchRequest []map[string]interface{}
|