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:
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.
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:
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.