-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The ProductResource has a lot of information about a product, but it currently does not have batch or expiry information.
Operations and components integrate ProductResource directly, so there is not an obvious place to add this information.
Proposal:
- Add a
batchesarray ofBatchTypetoProductResource. BatchTypewould containidentifier(batch identifier) andexpiryDate(datetime). ICAR has an equivalent in theiricarMedicineBatchType(https://github.com/adewg/ICAR/blob/ADE-1/types/icarMedicineBatchType.json).
Some people may prefer that static data about a product and uses of a product instance are not mixed. If this is a concern, there would be two ways of addressing this:
- Replace uses of
ProductResourcewithin operations and mixes withProductInstanceType, which would contain the batch information and allOfProductResourceor - Create a
ProductSpecificationResourceto hold the static data about a product, and modifyProductResourceto be allOfProductSpecificationResourceand the batch data.
These two approaches are very similar. The second one is less likely to cause any breaking changes for generated code for handling work records, operations, and mixes.
Metadata
Metadata
Assignees
Labels
No labels