public boolean isPrimitive ( String code ) { StructureDefinition sd = context . fetchResource ( StructureDefinition . class , "http://hl7.org/fhir/StructureDefinition/" + code ) ; return sd != null && sd . getKind ( ) == StructureDefinitionKind . PRIMITIVETYPE ; }
Is the given type a primitive