Compile error on Latest Stable
- Dominant language
- Go
- Stars
- 113
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
## Input:
Running the following model after importing the latest stable: `0.0.2`
```
library Explore version '1.2.3'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
context Patient
define InvalidObservations:
[Observation] o
where (o.effective as dateTime).value before Patient.birthDate.value
define CountInvalid:
Count(InvalidObservations) = 0
```
## Code
```go
fhirDM, err := cql.FHIRDataModel("4.0.1")
if err != nil {
return nil, err
}
config := cql.ParseConfig{DataModels: [][]byte{fhirDM}}
cqlLibs := []string{FHIR_LIB, cqlStmt}
elm, err := cql.Parse(ctx, cqlLibs, config)
if err != nil {
log.Fatalf("failed to parse CQL: %v", err)
}
return elm, nil
```
## Output
```
failed to parse CQL: 13-3 could not resolve Count(List>): no matching overloads
```
## Fix:
```
go get github.com/google/cql@main
```
Contributor guide
Assessment
This issue has not been assessed yet.