Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 898 Bytes

contributing.md

File metadata and controls

24 lines (19 loc) · 898 Bytes

Contributing FHIR Resources

Generally speaking, the HL7 FHIR Resource objects are well defined by a standards committee, and fairly straightforward. As such, we'll take most any pull requests that include SimpleSchemas that conform to any FHIR Resource or Extension.

Steps to Convert FHIR JSON to SimpleSchema

If you'd like to work on converting FHIR Resources to SimpleSchemas and Meteor packages, here is a short outline of the steps used to create the initial collection of schemas.

  1. Copy JSON to file
  2. Remove comments
  3. Convert "" to Boolean
  4. Convert subdocuments fields into dotted notation
  5. Remove indentation spacing
  6. Add {type: {}} structure to each entry
  7. Add optional:true
  8. Add {meta: {version: ""}}
  9. SimpleSchema()
  10. JSDoc definition
  11. lib/object.js file
  12. base object
  13. transform function
  14. collection definition
  15. package.js file