FHIR: add Classification & Search
User Story
As a sysadmin I want my Products and Items to have the FHIR classification attribute filled in using the Akeneo Category so that I can search and filter responses in the API using those categories.
Background Documents
Acceptance Criteria
-
Product and Item have a classification
attribute, which is a CodeableConcept: https://build.fhir.org/ig/IHE/pharm-supply/StructureDefinition-model-item-definitions.html#Item.classification -
The classification is populated using the Akeneo Category for any given Product or Product Model. -
For every Akeneo category a product/-model is associated to, the FHIR representation as CodeableConcepts is: -
coding.system
->/api/v1/rest/categories
-
coding.code
-> Akeneo CODE for category -
coding.display
-> Akeneo value for category, using default locale or en_US (for now)
-
-
For every Bundle returned from GET product or item, a search is supported for classification
.- a valid classification value is simply the
code
(not the system / URI) - adding a
classification
search will limit the results to only those products or items that have aclassification
with that CodeableConcept code.
- a valid classification value is simply the
Definition of Ready
-
User Story can be broken down no further -
Acceptance Criteria and Story Points are agreed upon by development team and PO
Definition of Done
-
If required, UI Mockups are created and reviewed -
Code is written with automated unit tests, reviewed, merged to master branch, all tests pass -
All UI texts are multilingual -
Manual tests in test environment are successfully performed -
Test Plan is updated -
Documentation is updated -
Changelog is updated
Edited by George Githae