Class FhirParser
java.lang.Object
de.gematik.test.erezept.fhir.parser.FhirParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.hl7.fhir.r4.model.Resource>
T<T extends org.hl7.fhir.r4.model.Resource>
Torg.hl7.fhir.r4.model.Resourceorg.hl7.fhir.r4.model.Resourceencode(org.hl7.fhir.instance.model.api.IBaseResource resource, de.gematik.bbriccs.fhir.EncodingType encoding) encode(org.hl7.fhir.instance.model.api.IBaseResource resource, de.gematik.bbriccs.fhir.EncodingType encoding, boolean prettyPrint) booleanca.uhn.fhir.validation.ValidationResultCheck beforehand if the given content is valid
-
Constructor Details
-
FhirParser
public FhirParser()
-
-
Method Details
-
validate
Check beforehand if the given content is valid- Parameters:
content- to be validated- Returns:
- successful ValidationResult if content represents a valid FHIR-Resource and a unsuccessful ValidationResult otherwise
-
isValid
-
decode
-
decode
-
decode
-
decode
public org.hl7.fhir.r4.model.Resource decode(String content, de.gematik.bbriccs.fhir.EncodingType encoding) -
encode
public String encode(org.hl7.fhir.instance.model.api.IBaseResource resource, de.gematik.bbriccs.fhir.EncodingType encoding) -
encode
public String encode(org.hl7.fhir.instance.model.api.IBaseResource resource, de.gematik.bbriccs.fhir.EncodingType encoding, boolean prettyPrint)
-