lantanagroup / FHIR.js

Node.JS library for serializing/deserializing FHIR resources between JS/JSON and XML using various node.js XML libraries
Apache License 2.0
102 stars 29 forks source link

README.md - example for setting a different FHIR Version references a non-existent function when creating parser. #60

Closed NHS-juju closed 2 years ago

NHS-juju commented 2 years ago

The example shows: // Create a parser and parse it using the parser var parser = new ParseConformance(false, FhirVersions.STU3); // don't load pre-parsed data parser.parseBundle(newValueSets); parser.parseBundle(newTypes); parser.parseResources(newResources); however "parser.parseResources()" does not exist as a function.

I believe it should be instead: // Create a parser and parse it using the parser var parser = new ParseConformance(false, FhirVersions.STU3); // don't load pre-parsed data parser.parseBundle(newValueSets); parser.parseBundle(newTypes); parser.parseBundle(newResources);

seanmcilvenna commented 2 years ago

Thanks for pointing this out!