package servicerequest

import "time"

type ServiceRequestRequest struct {
	PatientID     string    `json:"patient_id" binding:"required"`
	PatientName   string    `json:"patient_name" binding:"required"`
	EncounterID   string    `json:"encounter_id" binding:"required"`
	RequesterID   string    `json:"requester_id" binding:"required"`
	RequesterName string    `json:"requester_name" binding:"required"`
	Status        string    `json:"status" binding:"required,oneof=draft active on-hold revoked completed entered-in-error unknown"`                              // draft, active, on-hold, revoked, completed, entered-in-error, unknown
	Intent        string    `json:"intent" binding:"required,oneof=proposal plan directive order original-order reflex-order filler-order instance-order option"` // proposal, plan, directive, order, original-order, reflex-order, filler-order, instance-order, option
	Code          string    `json:"code" binding:"required"`
	Display       string    `json:"display" binding:"required"`
	AuthoredOn    time.Time `json:"authored_on" binding:"required"`
}

type ServiceRequestPatchRequest []map[string]interface{}
