package composition

import "time"

type CompositionRequest struct {
	PatientID        string    `json:"patient_id" binding:"required"`
	PatientName      string    `json:"patient_name" binding:"required"`
	EncounterID      string    `json:"encounter_id" binding:"required"`
	PractitionerID   string    `json:"practitioner_id" binding:"required"`
	PractitionerName string    `json:"practitioner_name" binding:"required"`
	Title            string    `json:"title" binding:"required"`
	Status           string    `json:"status" binding:"required,oneof=preliminary final amended entered-in-error"` // preliminary, final, amended, entered-in-error
	Date             time.Time `json:"date" binding:"required"`
}

// CompositionPatchRequest merepresentasikan payload operasi JSON Patch.
type CompositionPatchRequest []map[string]interface{}
