
Package ca.uhn.fhir.jpa.dao
Class TolerantJsonParser
java.lang.Object
ca.uhn.fhir.parser.BaseParser
ca.uhn.fhir.parser.JsonParser
ca.uhn.fhir.jpa.dao.TolerantJsonParser
- All Implemented Interfaces:
IJsonLikeParser,IParser
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.parser.BaseParser
BaseParser.CompositeChildElement -
Field Summary
Fields inherited from class ca.uhn.fhir.parser.BaseParser
RESOURCE_CREATED_BY_PARSER -
Constructor Summary
ConstructorsConstructorDescriptionTolerantJsonParser(ca.uhn.fhir.context.FhirContext theContext, IParserErrorHandler theParserErrorHandler, JpaPid theResourcePid) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic TolerantJsonParsercreateWithLenientErrorHandling(ca.uhn.fhir.context.FhirContext theContext, JpaPid theResourcePid) <T extends org.hl7.fhir.instance.model.api.IBaseResource>
TparseResource(Class<T> theResourceType, String theMessageString) Methods inherited from class ca.uhn.fhir.parser.JsonParser
doEncodeResourceToJsonLikeWriter, doEncodeResourceToWriter, doEncodeToWriter, doParseIntoComplexStructure, doParseResource, doParseResource, encodeResourceToJsonLikeWriter, getEncoding, parseResource, parseResource, setPrettyPrintMethods inherited from class ca.uhn.fhir.parser.BaseParser
compositeChildIterator, containResourcesInReferences, encodeResourceToString, encodeResourceToWriter, encodeResourceToWriter, encodeToString, encodeToWriter, encodeToWriter, extractMetadataListNotNull, fixContainedResourceId, getCompositeElementId, getContext, getDontStripVersionsFromReferencesAtPaths, getEncodeForceResourceId, getErrorHandler, getExtensionMetadataKeys, getExtensionUrl, getMetaTagsForEncoding, getPreferTypes, getProfileTagsForEncoding, getServerBaseUrl, getStripVersionsFromReferences, getSuppressNarratives, isChildContained, isEncodeElementsAppliesToChildResourcesOnly, isOmitResourceId, isSummaryMode, isSuppressNarratives, parseInto, parseResource, parseResource, parseResource, parseResource, parseResource, preProcessValues, setDontEncodeElements, setDontStripVersionsFromReferencesAtPaths, setDontStripVersionsFromReferencesAtPaths, setEncodeElements, setEncodeElementsAppliesToChildResourcesOnly, setEncodeForceResourceId, setOmitResourceId, setOverrideResourceIdWithBundleEntryFullUrl, setParserErrorHandler, setPreferTypes, setServerBaseUrl, setStripVersionsFromReferences, setSummaryMode, setSuppressNarratives, shouldAddSubsettedTag, shouldEncodePath, shouldEncodeResource, shouldEncodeResourceId, shouldEncodeResourceMeta, throwExceptionForUnknownChildTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.parser.IParser
encodeResourceToString, encodeResourceToWriter, encodeToString, encodeToWriter, getDontStripVersionsFromReferencesAtPaths, getEncodeForceResourceId, getPreferTypes, getStripVersionsFromReferences, isEncodeElementsAppliesToChildResourcesOnly, isOmitResourceId, isSummaryMode, parseInto, parseInto, parseResource, parseResource, parseResource, parseResource, parseResource, setDontEncodeElements, setDontEncodeElements, setDontStripVersionsFromReferencesAtPaths, setDontStripVersionsFromReferencesAtPaths, setEncodeElements, setEncodeElements, setEncodeElementsAppliesToChildResourcesOnly, setEncodeForceResourceId, setOmitResourceId, setOverrideResourceIdWithBundleEntryFullUrl, setParserErrorHandler, setPreferTypes, setServerBaseUrl, setStripVersionsFromReferences, setSummaryMode, setSuppressNarratives
-
Constructor Details
-
TolerantJsonParser
public TolerantJsonParser(ca.uhn.fhir.context.FhirContext theContext, IParserErrorHandler theParserErrorHandler, JpaPid theResourcePid) Constructor- Parameters:
theResourcePid- The ID of the resource that will be parsed with this parser. It would be ok to change the datatype for this param if we ever need to since it's only used for logging.
-
-
Method Details
-
parseResource
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> T parseResource(Class<T> theResourceType, String theMessageString) - Specified by:
parseResourcein interfaceIParser- Overrides:
parseResourcein classBaseParser
-
createWithLenientErrorHandling
public static TolerantJsonParser createWithLenientErrorHandling(ca.uhn.fhir.context.FhirContext theContext, @Nullable JpaPid theResourcePid)
-