예제 #1
0
 public static void SerializeTagList(TagList list, XmlWriter xw)
 {
     FhirSerializer.Serialize(list, new XmlFhirWriter(xw), false);
 }
예제 #2
0
 public static void SerializeResource(Resource resource, JsonWriter writer, bool summary = false)
 {
     FhirSerializer.Serialize(resource, new JsonDomFhirWriter(writer), summary);
 }
예제 #3
0
 public static void SerializeTagList(TagList list, JsonWriter jw)
 {
     FhirSerializer.Serialize(list, new JsonDomFhirWriter(jw), false);
 }
예제 #4
0
 internal static byte[] SerializeToXmlBytes(object instance, bool summary = false)
 {
     return(xmlWriterToBytes(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw), summary)));
 }
예제 #5
0
 internal static byte[] SerializeToJsonBytes(object instance, bool summary = false)
 {
     return(jsonWriterToBytes(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary)));
 }
예제 #6
0
 internal static string SerializeToJson(object instance, bool summary = false)
 {
     return(jsonWriterToString(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary)));
 }
예제 #7
0
 internal static string SerializeToXml(object instance, bool summary = false)
 {
     return(xmlWriterToString(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw), summary)));
 }
        private static object getContentAsXElement(Resource resource, bool summary)
        {
            var xml = FhirSerializer.SerializeResourceToXml(resource, summary);

            return(XElement.Parse(xml));
        }
예제 #9
0
 public static void SerializeResource(Resource resource, XmlWriter writer)
 {
     FhirSerializer.Serialize(resource, new XmlFhirWriter(writer));
 }
예제 #10
0
 public static void SerializeResource(Resource resource, JsonWriter writer)
 {
     FhirSerializer.Serialize(resource, new JsonDomFhirWriter(writer));
 }