示例#1
0
        public void WhenSearchedWithAllergyCategory()
        {
            var resource = _dataGenerator.GetAllergyWithCategory(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("category", "food");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedWithModifierIn()
        {
            var resource = _searchDataGenerator.GetDataWithConditionCode(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("code:in", "http://snomed.info/sct|39065001");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
示例#3
0
        public void WhenProcedureSearchedWithBodySite()
        {
            var resource = _dataGenerator.GetProcedureWithBodySite(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("body-site", "http://snomed.info/sct|272676008");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedViaProfile()
        {
            var resource = _searchDataGenerator.GetDataWithResource(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("_profile", "http://hl7.org/fhir/StructureDefinition/vitalsigns");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedWithValue()
        {
            var resource = _searchDataGenerator.GetDataWithResourceCodableConcept(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("value-concept", "http://loinc.org|LA25391-6");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedViaText()
        {
            var resource = _searchDataGenerator.GetConditionToSearchViaContent(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add(SearchParams.SEARCH_PARAM_TEXT, "bone");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedByFilter()
        {
            var resource = _searchDataGenerator.GetDataWithResourceCodableConcept(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add(SearchParams.SEARCH_PARAM_FILTER, "name eq http://loinc.org|LA25391-6");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedViaChaining()
        {
            var resource = _searchDataGenerator.GetObservationForPatient(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("subject:Patient.name", "xyz");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedWithQuantity()
        {
            var resource = _searchDataGenerator.GetDataWithObservationQuantity(_fhirClient);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("value-quantity", "120.00");

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }
        public void WhenResourceSearchedWithLastUpdatedParam()
        {
            var resource = _searchDataGenerator.GetDataWithResource(_fhirClient);

            DateTimeOffset lastUpdated = resource.Meta.LastUpdated.GetValueOrDefault(DateTimeOffset.Now);

            string dateTime = string.Format(
                CultureInfo.InvariantCulture,
                FhirDateTime.FMT_YEARMONTHDAY,
                lastUpdated.Year,
                lastUpdated.Month,
                lastUpdated.Day);

            SearchParams searchParams = new SearchParams();

            searchParams.Add("_lastUpdated", dateTime);

            SearchTestCapabilitiesHelper.SearchThenAssertResult(_fhirClient, resource, searchParams);
        }