mastering bridging
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
package model
|
||||
|
||||
type MedicationRequestRequest struct {
|
||||
Id string `json:"id,omitempty"`
|
||||
MedicationRequest *MedicationRequest `json:"medicationRequest,omitempty"`
|
||||
ResourceType string `json:"resourceType"`
|
||||
Identifier []Identifier `json:"identifier"`
|
||||
Status string `json:"status" binding:"required"`
|
||||
Intent string `json:"intent" binding:"required"`
|
||||
Category []Category `json:"category"`
|
||||
Priority string `json:"priority" binding:"required"`
|
||||
MedicationReference Reference `json:"medicationReference" binding:"required"`
|
||||
Subject Reference `json:"subject" binding:"required"`
|
||||
Encounter Reference `json:"encounter"`
|
||||
AuthoredOn string `json:"authoredOn"`
|
||||
Requester Reference `json:"requester"`
|
||||
ReasonCode []Category `json:"reasonCode"`
|
||||
CourseOfTherapyType Category `json:"courseOfTherapyType"`
|
||||
DosageInstruction []DosageMR `json:"dosageInstruction"`
|
||||
DispenseRequest DispenseRequest `json:"dispenseRequest" binding:"required"`
|
||||
}
|
||||
|
||||
type DosageMR struct {
|
||||
Sequence int `json:"sequence"`
|
||||
Text string `json:"text"`
|
||||
AdditionalInstruction []AdditionalText `json:"additionalInstruction,omitempty"`
|
||||
PatientInstruction string `json:"patientInstruction,omitempty"`
|
||||
Timing Timing `json:"timing"`
|
||||
Route Category `json:"route,omitempty"`
|
||||
DoseAndRate []DoseAndRate `json:"doseAndRate,omitempty"`
|
||||
}
|
||||
|
||||
type AdditionalText struct {
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
type DispenseRequest struct {
|
||||
DispenseInterval Quantity `json:"dispenseInterval"`
|
||||
ValidityPeriod Period `json:"validityPeriod"`
|
||||
NumberOfRepeatsAllowed int `json:"numberOfRepeatsAllowed"`
|
||||
Quantity Quantity `json:"quantity"`
|
||||
ExpectedSupplyDuration Quantity `json:"expectedSupplyDuration"`
|
||||
Performer Reference `json:"performer"`
|
||||
}
|
||||
Reference in New Issue
Block a user