Details
-
Type: Bug
-
Status: Closed
-
Priority: Medium
-
Resolution: Fixed
-
Affects Version/s: 1.0.0
-
Fix Version/s: 1.1.0
-
Component/s: None
-
Labels:None
-
Sprint:2018 - S8
-
Account:EHEALTHSUISSE2018 (EHS2018)
Description
In BBR chcda, template cdach_entry_InabilityToWorkObservation, there is the PQ datatype that has its @value restricted from double to int.
This generate a OCL constraint such as
context cdach_entry_InabilityToWorkObservation
inv: self.value->select(oclIsKindOf(PQ)).oclAsType(PQ)->forAll(value.oclIsUndefined() or CommonOperationsStatic::matches(value.toString(), '\d*'))
However value.toString() cannot be applied on a double, this makes the compilation of generated validator failing.
This generate a OCL constraint such as
context cdach_entry_InabilityToWorkObservation
inv: self.value->select(oclIsKindOf(PQ)).oclAsType(PQ)->forAll(value.oclIsUndefined() or CommonOperationsStatic::matches(value.toString(), '\d*'))
However value.toString() cannot be applied on a double, this makes the compilation of generated validator failing.