-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add graphql medication statement and medication types
- Loading branch information
Showing
7 changed files
with
4,496 additions
and
692 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
pkg/clinical/presentation/graph/fhir/Medication.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
""" | ||
MedicationStatusEnum | ||
""" | ||
enum MedicationStatusEnum { | ||
active | ||
inactive | ||
entered_in_error # `original: entered-in-error` | ||
} | ||
|
||
""" | ||
FHIRMedicationInput | ||
""" | ||
input FHIRMedicationInput { | ||
ID: ID | ||
|
||
Text: FHIRNarrativeInput | ||
|
||
Identifier: [FHIRIdentifierInput] | ||
|
||
Code: FHIRCodeableConceptInput | ||
|
||
Status: MedicationStatusEnum | ||
|
||
Manufacturer: FHIROrganizationInput | ||
|
||
Form: FHIRCodeableConceptInput | ||
|
||
Amount: FHIRRatioInput | ||
|
||
Ingredient: [MedicationIngredientInput] | ||
|
||
Batch: MedicationBatchInput | ||
} | ||
|
||
""" | ||
MedicationBatchInput | ||
""" | ||
input MedicationBatchInput { | ||
LotNumber: String | ||
|
||
ExpirationDate: Date | ||
} | ||
|
||
""" | ||
MedicationIngredientInput | ||
""" | ||
input MedicationIngredientInput { | ||
ItemCodelabConcept: FHIRCodeableConceptInput | ||
|
||
ItemReference: FHIRReferenceInput | ||
|
||
IsActive: Boolean | ||
|
||
Strength: FHIRRatioInput | ||
} | ||
|
||
""" | ||
FHIRMedication | ||
""" | ||
type FHIRMedication { | ||
ID: ID | ||
|
||
Text: FHIRNarrative | ||
|
||
Identifier: [FHIRIdentifier] | ||
|
||
Code: FHIRCodeableConcept | ||
|
||
Status: MedicationStatusEnum | ||
|
||
Manufacturer: FHIROrganization | ||
|
||
Form: FHIRCodeableConcept | ||
|
||
Amount: FHIRRatio | ||
|
||
Ingredient: [MedicationIngredient] | ||
|
||
Batch: MedicationBatch | ||
} | ||
|
||
""" | ||
MedicationBatch | ||
""" | ||
type MedicationBatch { | ||
LotNumber: String | ||
|
||
ExpirationDate: Date | ||
} | ||
|
||
""" | ||
MedicationIngredient | ||
""" | ||
type MedicationIngredient { | ||
ItemCodelabConcept: FHIRCodeableConcept | ||
|
||
ItemReference: FHIRReference | ||
|
||
IsActive: Boolean | ||
|
||
Strength: FHIRRatio | ||
} | ||
|
||
""" | ||
FHIRMedicationRelayConnection is a Relay connection for MedicationStatement | ||
""" | ||
type FHIRMedicationRelayConnection { | ||
edges: [FHIRMedicationRelayEdge] | ||
pageInfo: PageInfo | ||
} | ||
|
||
""" | ||
FHIRMedicationRelayEdge is a Relay edge for Medication | ||
""" | ||
type FHIRMedicationRelayEdge { | ||
cursor: String | ||
node: FHIRMedication | ||
} | ||
|
||
""" | ||
FHIRMedicationRelayPayload is used to return single instances of Medication | ||
""" | ||
type FHIRMedicationRelayPayload { | ||
resource: FHIRMedication | ||
} |
Oops, something went wrong.