Exemplo n.º 1
0
 public static FhirRequest Create(string id, ResourceType resourceType)
 {
     return(new FhirRequest
     {
         Id = id,
         ResourceType = resourceType,
         AllowedParameters = resourceType.GetAllowed()
     });
 }
Exemplo n.º 2
0
 public static FhirRequest Create(string id, ResourceType resourceType, Resource resource, HttpRequest request, string requestingAsid)
 {
     return(new FhirRequest
     {
         Id = id,
         ResourceType = resourceType,
         Resource = resource,
         RequestUrl = CreateUrl(request.Scheme, request.Host.Value, request.Path, request.QueryString.Value),
         QueryParameters = request.QueryString.Value.GetParameters().Cleaned(),
         AllowedParameters = resourceType.GetAllowed(),
         RequestingAsid = requestingAsid
     });
 }
Exemplo n.º 3
0
 public static FhirRequest Copy(FhirRequest request, ResourceType resourceType, Resource resource, IEnumerable <Tuple <string, string> > queryParameters, string profileUrl = null)
 {
     return(new FhirRequest
     {
         Id = request.Id,
         ResourceType = resourceType,
         Resource = resource,
         RequestUrl = request.RequestUrl,
         QueryParameters = queryParameters,
         AllowedParameters = resourceType.GetAllowed(),
         RequestingAsid = request.RequestingAsid,
         ProfileUri = profileUrl
     });
 }