/// <summary>
        /// The URL path of the resource being requested.
        /// </summary>
        /// <returns></returns>
        public override string UrlPath()
        {
            var queryParams = new List<string> { "studies", StudyNameAndEnvironment(), "subjects", SubjectKey, "datasets", dataset_type };

            if (!string.IsNullOrEmpty(FormOid)) queryParams.Add(FormOid);

            return RequestHelpers.MakeUrl("/", QueryString(), queryParams.ToArray());
        }
        public void RequestHelpers_MakeUrl_method_encodes_a_study_with_a_slash_in_the_name()
        {
            var url = RequestHelpers.MakeUrl("/", "Mediflex_/11/11", "TEST_RESOURCE");

            Assert.AreEqual("Mediflex_%2f11%2f11/TEST_RESOURCE", url);

            url = RequestHelpers.MakeUrl("/", "webservice.aspx?PostODMClinicalData");

            Assert.AreEqual("webservice.aspx?PostODMClinicalData", url);
        }
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", QueryString(), new string[] { "studies", StudyNameAndEnvironment(), "subjects" }));
 }
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", QueryString(), new string[] { "datasets", "ClinicalAuditRecords.odm" }));
 }
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", new string[] { "metadata", "studies", ProjectName, "versions" }));
 }
Esempio n. 6
0
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", QueryString(), new string[] { "datasets", "Signatures.odm" }));
 }
Esempio n. 7
0
 /// <summary>
 /// The URL path of the resource
 /// </summary>
 /// <returns></returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", QueryString(), new string[] { "studies", StudyNameAndEnvironment(), "datasets", "metadata", "regular" }));
 }
Esempio n. 8
0
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", "datasets", $"{DataSetName()}?studyid={StudyNameAndEnvironment()}"));
 }
Esempio n. 9
0
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", new string[] { "webservice.aspx?PostODMClinicalData" }));
 }
 /// <summary>
 /// The URL path of the resource being requested.
 /// </summary>
 /// <returns></returns>
 public override string UrlPath()
 {
     return(RequestHelpers.MakeUrl("/", new string[] { "studies" }));
 }