dwagelaar / ttc2023-kmehr2fhir

The TTC 2023 KMEHR to FHIR case
MIT License
0 stars 5 forks source link

Helper msgSender is not implemented #3

Closed dwagelaar closed 1 year ago

dwagelaar commented 1 year ago

The helper attribute msgSender only has an implementation for the base context OclAny, which is used for catching OclUndefined.msgSender. There is not implementation for the model element that actually has a msgSender, i.e. KMEHR!HeaderType.

The helper attribute msgSender is actually used in the SumEHRTransactionWithAuthor rule around line 113:

        authRef : FHIR!Reference (
            reference <- thisModule.FhirString(refPrefix + s.msgSender.uuid)
        )

This does not generate an error, because the uuid helper attribute is defined on OclAny, and therefore also returns a valid result for OclUndefined. Of course, this results in a dangling author reference in the resulting FHIR Composition element.