public class Functions extends Object
| Constructor and Description |
|---|
Functions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
resourceToJson(org.hl7.fhir.dstu3.model.Resource resource)
Converts a resource to its JSON representation.
|
static String |
resourceToXml(org.hl7.fhir.dstu3.model.Resource resource)
Converts a resource to its XML representation.
|
static org.hl7.fhir.dstu3.model.Bundle |
toBundle(org.apache.spark.sql.Dataset<? extends org.hl7.fhir.dstu3.model.Resource> dataset)
Returns a bundle containing all resources in the dataset.
|
static org.apache.spark.sql.Dataset<String> |
toJson(org.apache.spark.sql.Dataset<?> dataset,
String resourceType)
Converts a set of FHIR resources to JSON.
|
static String |
toJsonBundle(org.apache.spark.sql.Dataset<? extends org.hl7.fhir.dstu3.model.Resource> dataset)
Returns a JSON string representing the resources as a bundle.
|
public static org.apache.spark.sql.Dataset<String> toJson(org.apache.spark.sql.Dataset<?> dataset, String resourceType)
dataset - a dataset containing FHIR resourcesresourceType - the FHIR resource typepublic static org.hl7.fhir.dstu3.model.Bundle toBundle(org.apache.spark.sql.Dataset<? extends org.hl7.fhir.dstu3.model.Resource> dataset)
dataset - a dataset of FHIR resorucespublic static String toJsonBundle(org.apache.spark.sql.Dataset<? extends org.hl7.fhir.dstu3.model.Resource> dataset)
dataset - a dataset of FHIR resources.public static String resourceToXml(org.hl7.fhir.dstu3.model.Resource resource)
resource - the resourcepublic static String resourceToJson(org.hl7.fhir.dstu3.model.Resource resource)
resource - the resourceCopyright © 2019. All rights reserved.