Closed csnyulas closed 4 months ago
I see no problem in mapping to the subclasses. I really do not understand the problem when the data provides a given value in the codelist you map to the subclass, if the answer is none you do not instantiate.
The problem is that we don't know how to write the mappings from the code list to the subclasses. As I said, in the original question, this is not trivial. What class instance would you assign those types to? Perhaps you can provide a suggestion for a class path + property path for mapping this field (+ XPath conditions, if necessary, which is likely the case). How many such mappings will we need to define, in your opinion, for this field to cover all the cases? 3 or 4, or perhaps less, or more?
Regarding the other fields that already instantiate the subclasses of epo:StrategicProcurement
, please see the mappings for fields: BT-774-Lot
, BT-805-Lot
, BT-775-Lot
and BT-776-Lot
in Part 4 of the CM. What do we need to do for field BT-06-Lot
in addition to what already happens in those other fields?
@csnyulas This will be treated when Part 4 of the CM is treated.
The suggested mapping: env-imp: epo:Lot epo:fulfillsStrategicProcurement epo:GreenProcurement inn-pur: epo:Lot epo:fulfillsStrategicProcurement epo:InnovativeProcurement none: No mapping soc-obj: epo:Lot epo:fulfillsStrategicProcurement epo:SocialProcurement
Field ID: BT-06-Lot Name: Strategic Procurement absolute XPath:
/*/cac:ProcurementProjectLot[cbc:ID/@schemeName='Lot']/cac:ProcurementProject/cac:ProcurementAdditionalType[cbc:ProcurementTypeCode/@listName='strategic-procurement']/cbc:ProcurementTypeCode
Comment: We can't map this to EPO, as EPO does not provide an explicit code lists for this, but rather it represents them as specific subclasses of theepo:StrategicProcurement
class (at least for the case of the above three cases). Test data should be checked for real values, to see where it should be mapped in the future.cbc:ProcurementTypeCode
has 4 values :null
,env-imp
,inn-pur
,soc-obj
. We have mappings in other fields that cover these values.