changes to fix new json type checking and new FHIR resource for observations