| Package | Description |
|---|---|
| ca.uhn.fhir.context | |
| ca.uhn.fhir.parser | |
| ca.uhn.fhir.rest.api |
| Modifier and Type | Method and Description |
|---|---|
IParser |
FhirContext.newJsonParser()
Create and return a new JSON parser.
|
IParser |
FhirContext.newXmlParser()
Create and return a new XML parser.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IJsonLikeParser
An extension to the parser interface that is implemented by parsers that understand a generalized form of
JSON data.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BaseParser |
class |
JsonParser
This class is the FHIR JSON parser/encoder.
|
class |
XmlParser
This class is the FHIR XML parser/encoder.
|
| Modifier and Type | Method and Description |
|---|---|
IParser |
BaseParser.setDontStripVersionsFromReferencesAtPaths(Collection<String> thePaths) |
IParser |
IParser.setDontStripVersionsFromReferencesAtPaths(Collection<String> thePaths)
If supplied value(s), any resource references at the specified paths will have their
resource versions encoded instead of being automatically stripped during the encoding
process.
|
IParser |
BaseParser.setDontStripVersionsFromReferencesAtPaths(String... thePaths) |
IParser |
IParser.setDontStripVersionsFromReferencesAtPaths(String... thePaths)
If supplied value(s), any resource references at the specified paths will have their
resource versions encoded instead of being automatically stripped during the encoding
process.
|
IParser |
IParser.setEncodeForceResourceId(IIdType theForceResourceId)
When encoding, force this resource ID to be encoded as the resource ID
|
IParser |
BaseParser.setOmitResourceId(boolean theOmitResourceId) |
IParser |
IParser.setOmitResourceId(boolean theOmitResourceId)
If set to
true (default is false) the ID of any resources being encoded will not be
included in the output. |
IParser |
BaseParser.setOverrideResourceIdWithBundleEntryFullUrl(Boolean theOverrideResourceIdWithBundleEntryFullUrl) |
IParser |
IParser.setOverrideResourceIdWithBundleEntryFullUrl(Boolean theOverrideResourceIdWithBundleEntryFullUrl)
If set to
true (which is the default), the Bundle.entry.fullUrl will override the Bundle.entry.resource's
resource id if the fullUrl is defined. |
IParser |
BaseParser.setParserErrorHandler(IParserErrorHandler theErrorHandler) |
IParser |
IParser.setParserErrorHandler(IParserErrorHandler theErrorHandler)
Registers an error handler which will be invoked when any parse errors are found
|
IParser |
JsonParser.setPrettyPrint(boolean thePrettyPrint) |
IParser |
XmlParser.setPrettyPrint(boolean thePrettyPrint) |
IParser |
IParser.setPrettyPrint(boolean thePrettyPrint)
Sets the "pretty print" flag, meaning that the parser will encode resources with human-readable spacing and
newlines between elements instead of condensing output as much as possible.
|
IParser |
BaseParser.setServerBaseUrl(String theUrl) |
IParser |
IParser.setServerBaseUrl(String theUrl)
Sets the server's base URL used by this parser.
|
IParser |
BaseParser.setStripVersionsFromReferences(Boolean theStripVersionsFromReferences) |
IParser |
IParser.setStripVersionsFromReferences(Boolean theStripVersionsFromReferences)
If set to
true |
IParser |
BaseParser.setSummaryMode(boolean theSummaryMode) |
IParser |
IParser.setSummaryMode(boolean theSummaryMode)
If set to
true (default is false) only elements marked by the FHIR specification as
being "summary elements" will be included. |
IParser |
BaseParser.setSuppressNarratives(boolean theSuppressNarratives) |
IParser |
IParser.setSuppressNarratives(boolean theSuppressNarratives)
If set to
true (default is false), narratives will not be included in the encoded
values. |
| Modifier and Type | Method and Description |
|---|---|
abstract IParser |
EncodingEnum.newParser(FhirContext theContext) |
Copyright © 2014–2017 University Health Network. All rights reserved.