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);
 }
Exemple #2
0
 public string Serialize(ResourceWrapper resourceWrapper, FhirMimeType type = FhirMimeType.Json)
 {
     return(Serialize(resourceWrapper.Resource, type));
 }