Am working on this ticket where am to create an OrderGroup Resource. which is to help one send multiple orders via one rest call. But the OrderGruop its self has the following properties
- private Patient patient;
- private Encounter encounter;
which very properties already exist in a single order.
Since each single order i create will contain a patient and an encouter , my thinking is that i shouldnt add those two properties above to the OrderGroup resource
since they’ll will already be created in each single order in the OrderGroup
,
otherwise it will mean that, the patient and encounter
has to be removed from the single orders and we only have one patient and encounter
for all the orders in the OrderGroup
Below is how the the json data would be if i add the above properties to the OrderGruop yet theyre already contained in each single order
{
"patient": "uuid",
"encounter": "uuid",
"orders": [
{
"encounter": "uuid",
"orderType": "uuid",
"action": "NEW",
"accessionNumber": "string",
"dateActivated": "string",
"scheduledDate": "string",
"patient": "uuid",
"concept": "uuid",
"careSetting": "uuid",
"dateStopped": "string",
"autoExpireDate": "string",
"orderer": "uuid",
"previousOrder": "uuid",
"urgency": "ROUTINE",
"orderReason": "uuid",
"orderReasonNonCoded": "string",
"instructions": "string",
"commentToFulfiller": "string"
}
{
"encounter": "uuid",
"orderType": "uuid",
"action": "NEW",
"accessionNumber": "string",
"dateActivated": "string",
"scheduledDate": "string",
"patient": "uuid",
"concept": "uuid",
"careSetting": "uuid",
"dateStopped": "string",
"autoExpireDate": "string",
"orderer": "uuid",
"previousOrder": "uuid",
"urgency": "ROUTINE",
"orderReason": "uuid",
"orderReasonNonCoded": "string",
"instructions": "string",
"commentToFulfiller": "string"
}
],
"orderSet": "uuid"
}
l need some clarification cc @dkayiwa @k.joseph @burke @jaks80 @darius