Utility functions for manipulation of HL7 FHIR STU3 resources.
var utils = require('fhir-utils');
var visitor = new utils.ResourceVisitor();
Visit all resources and calls op with each one
function op(resource){
//resource operation
}
visitor.visit(resource, op);
Visits:
- Bundled resources (including DSTU1 format for backwards compatibility)
- contained resources
- Parameters ($.parameter.value)
- Parameters ($.parameter.resource)
- Parameters ($.parameter.part.value)
- Parameters ($.parameter.part.resource)
var utils = require('fhir-utils');
var helper = new utils.ResourceHelper();
Array of all resourceTypes from http://hl7.org/fhir/codesystem-resource-types.html
Returns correctly capitalised resourceType
To execute unit tests:
npm install
npm test
Copyright 2018+ Black Pear Software Ltd.
fhir-utils is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
fhir-utils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Supported by Black Pear Software