Skip to content

Commit

Permalink
Merge pull request #28 from HL7/fix_compile
Browse files Browse the repository at this point in the history
Fix compile API.
  • Loading branch information
plynchnlm authored Oct 23, 2019
2 parents 4bf47bf + f83da1a commit af921b7
Show file tree
Hide file tree
Showing 8 changed files with 472 additions and 209 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
This log documents significant changes for each release. This project follows
[Semantic Versioning](http://semver.org/).

## [0.17.4] - 2019-10-22
### Fixed
- Fixed the compile API, so that the returned function now takes the "context"
hash of environment variables as a second argument (after the resource data).
Previously this context hash was passed into the compile function, not the
returned function, which meant that the parsed expression could only be reused
if the context variable hash was the same object.

## [0.17.3] - 2019-09-30
### Fixed
- Removed Linux-specific commands from the build process.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fhirpath.evaluate({}, '%a - 1', {a: 5});
// Precompiling fhirpath - result can be reused against multiple resources
const path = fhirpath.compile('Patient.name.given');
var res2 = path({"resourceType": "Patient", ...});
var res2 = path({"resourceType": "Patient", ...}, {a: 5, ...});
```

Expand Down
Loading

0 comments on commit af921b7

Please sign in to comment.