Пример #1
0
 public FhirRequestMessage(HttpMethod method, ResourceWrapper resource, FhirMimeType mimeType = FhirMimeType.Json)
 {
     _method    = method;
     _resource  = resource;
     _mimeType  = mimeType;
     _mediaType = mimeType == FhirMimeType.Json
         ? "application/fhir+json"
         : "application/fhir+xml";
     _serializer = new SerializationWrapper(resource.FhirVersion);
 }
Пример #2
0
 public string Serialize(ResourceWrapper resourceWrapper, FhirMimeType type = FhirMimeType.Json)
 {
     return(Serialize(resourceWrapper.Resource, type));
 }