123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using WingInterfaceLibrary.Interface.DBVitalInterface;
- namespace VitalService.Service
- {
- /// <summary>
- /// 随访数据服务-孕妇
- /// </summary>
- public partial class VitalDatabaseService : IVitalFollowUpDBService
- {
- private List<string> _gravidaFollowKeys = new List<string>
- {
- "MaternalHealthManagement",
- "PrenatalFollowupServiceRecord",
- "PostnatalVisitRecord",
- "PostpartumHealthCheckup42Days",
- };
- /// <summary>
- /// 是否孕妇随访
- /// </summary>
- /// <param name="followUpKey"></param>
- /// <returns></returns>
- private bool IsGravidaFollowUp(string followUpKey)
- {
- return _gravidaFollowKeys.Contains(followUpKey);
- }
- /// <summary>
- /// 是否孕妇随访
- /// </summary>
- /// <param name="followUpKeys"></param>
- /// <returns></returns>
- private bool IsGravidaFollowUp(List<string> followUpKeys)
- {
- if (followUpKeys?.Any() ?? false)
- {
- return _gravidaFollowKeys.Intersect(followUpKeys).Any();
- }
- return false;
- }
- }
- }
|