You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
CQL that uses the Resource.id will fail due to a type mismatch in our model from the expected type in the modelinfo file used by the CQL translator. Our model defines Resource.id as a java.lang.String and the FHIR modelinfo defines it as a FHIR.string. At runtime, this manifests itself as the error Could not resolve call to operator 'ToString(java.lang.String)' in library 'FHIRHelpers'.
Environment
4.10.2
To Reproduce
Steps to reproduce the behavior:
Make sure you have a patient defined that has at least one associated Condition resource.
Execute https://localhost:9443/fhir-server/api/v4/$cql?subject=Patient%2Fnumer-EXM104&expression=%5BCondition%5D%20c%20return%20Last(Split(c.id,%20'%2F')) substituting the correct patient ID in the subject field.
Note the error Could not resolve call to operator 'ToString(java.lang.String)' in library 'FHIRHelpers'.
Expected behavior
CQL code that utilizes the Resource.id field should function without error.
Additional context
This issue was identified while testing the EXM104 measure from the connectathon/fhir401 repository.
The text was updated successfully, but these errors were encountered:
Describe the bug
CQL that uses the Resource.id will fail due to a type mismatch in our model from the expected type in the modelinfo file used by the CQL translator. Our model defines Resource.id as a java.lang.String and the FHIR modelinfo defines it as a FHIR.string. At runtime, this manifests itself as the error
Could not resolve call to operator 'ToString(java.lang.String)' in library 'FHIRHelpers'.
Environment
4.10.2
To Reproduce
Steps to reproduce the behavior:
https://localhost:9443/fhir-server/api/v4/$cql?subject=Patient%2Fnumer-EXM104&expression=%5BCondition%5D%20c%20return%20Last(Split(c.id,%20'%2F'))
substituting the correct patient ID in the subject field.Could not resolve call to operator 'ToString(java.lang.String)' in library 'FHIRHelpers'.
Expected behavior
CQL code that utilizes the Resource.id field should function without error.
Additional context
This issue was identified while testing the EXM104 measure from the connectathon/fhir401 repository.
The text was updated successfully, but these errors were encountered: