Create routine to derive mongoose schema based on FHIR specs