base types json.builder null checking and fhir formatting