示例#1
0
        public async Task GivenUniqueInformation_WhenMemberMatchSent_ThenPatientFound(string city, string name, string date, string type, string subPlan, string expectedId)
        {
            var searchPatient = new Patient();

            _fixture.SetPatient(searchPatient, city, name, birthDate: date);
            var searchCoverage = new Coverage();

            _fixture.SetCoverage(searchCoverage, searchPatient, type, subPlan);
            var outParameters = await _client.MemberMatch(searchPatient, searchCoverage);

            var returnPatient = outParameters.Get("MemberPatient").First().Resource as Patient;
            var identifeir    = returnPatient.Identifier.Where(x => x.Type.Coding.Where(code => code.Code == "UMB").Any()).First().Value;

            Assert.Equal(expectedId, identifeir);
        }