penambahan All case Satu sehat

This commit is contained in:
meninjar
2026-05-04 03:48:43 +00:00
parent 135c631021
commit af32d9cfdd
127 changed files with 617690 additions and 1160 deletions

No files matched your search

@@ -1,18 +1,35 @@
package medicationstatement
import "time"
import (
"time"
"service/internal/satusehat/common"
)
type MedicationStatementRequest struct {
PatientID string `json:"patient_id" binding:"required"`
PatientName string `json:"patient_name" binding:"required"`
EncounterID string `json:"encounter_id" binding:"required"`
Status string `json:"status" binding:"required,oneof=active completed entered-in-error intended stopped on-hold unknown not-taken"`
CategoryCode string `json:"category_code" binding:"required,oneof=inpatient outpatient community"`
MedicationCode string `json:"medication_code" binding:"required"` // KFA Code
MedicationDisplay string `json:"medication_display" binding:"required"` // KFA Name
EffectiveDateTime time.Time `json:"effective_date_time" binding:"required"`
DateAsserted time.Time `json:"date_asserted" binding:"required"`
DosageText string `json:"dosage_text" binding:"required"`
OrganizationID string `json:"organization_id,omitempty"`
StatementID string `json:"statement_id,omitempty"`
Status string `json:"status" binding:"required,oneof=active completed entered-in-error intended stopped on-hold unknown not-taken"`
Category *common.CodeableConceptDTO `json:"category,omitempty"`
Medication *common.CodeableConceptDTO `json:"medication" binding:"required"`
Subject *common.ReferenceDTO `json:"subject" binding:"required"`
Context *common.ReferenceDTO `json:"context,omitempty"` // Encounter
EffectiveDateTime *time.Time `json:"effective_date_time,omitempty"`
DateAsserted *time.Time `json:"date_asserted,omitempty"`
InformationSource *common.ReferenceDTO `json:"information_source,omitempty"`
Dosage []DosageDTO `json:"dosage,omitempty"`
}
type DosageDTO struct {
Sequence int `json:"sequence,omitempty"`
Text string `json:"text,omitempty"`
PatientInstruction string `json:"patient_instruction,omitempty"`
Route *common.CodeableConceptDTO `json:"route,omitempty"`
DoseAndRate []DoseAndRateDTO `json:"dose_and_rate,omitempty"`
}
type DoseAndRateDTO struct {
DoseQuantity *common.QuantityDTO `json:"dose_quantity,omitempty"`
}
type MedicationStatementPatchRequest []map[string]interface{}