mastering bridging
This commit is contained in:
No files matched your search
@@ -0,0 +1,46 @@
|
||||
package model
|
||||
|
||||
type MedicationDispenseRequest struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
ResourceType string `json:"resourceType"`
|
||||
Identifier []Identifier `json:"identifier"`
|
||||
Status string `json:"status" binding:"required"`
|
||||
Category Category `json:"category"`
|
||||
MedicationReference Reference `json:"medicationReference" binding:"required"`
|
||||
Subject Reference `json:"subject" binding:"required"`
|
||||
Context Reference `json:"context"`
|
||||
Performer []Performer `json:"performer"`
|
||||
Location Reference `json:"location" binding:"required"`
|
||||
AuthorizingPrescription []Reference `json:"authorizingPrescription" binding:"required"`
|
||||
Quantity Quantity `json:"quantity" binding:"required"`
|
||||
DaysSupply DaysSupply `json:"daysSupply" binding:"required"`
|
||||
WhenPrepared string `json:"whenPrepared" binding:"required"`
|
||||
WhenHandedOver string `json:"whenHandedOver" binding:"required"`
|
||||
DosageInstruction []Dosage `json:"dosageInstruction"`
|
||||
}
|
||||
|
||||
type DaysSupply struct {
|
||||
Value float64 `json:"value"`
|
||||
Unit string `json:"unit"`
|
||||
System string `json:"system"`
|
||||
Code string `json:"code"`
|
||||
}
|
||||
|
||||
type Dosage struct {
|
||||
Sequence *int `json:"sequence,omitempty"`
|
||||
Text string `json:"text"`
|
||||
Timing Timing `json:"timing"`
|
||||
DoseAndRate []DoseAndRate `json:"doseAndRate,omitempty"`
|
||||
}
|
||||
|
||||
type DoseAndRate struct {
|
||||
Type Category `json:"type"`
|
||||
DoseQuantity DoseQuantity `json:"doseQuantity"`
|
||||
}
|
||||
|
||||
type DoseQuantity struct {
|
||||
Value float64 `json:"value"`
|
||||
Unit string `json:"unit"`
|
||||
System string `json:"system"`
|
||||
Code string `json:"code"`
|
||||
}
|
||||
Reference in New Issue
Block a user