FollowUpDBService.Gravida.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using WingInterfaceLibrary.Interface.DBVitalInterface;
  2. namespace VitalService.Service
  3. {
  4. /// <summary>
  5. /// 随访数据服务-孕妇
  6. /// </summary>
  7. public partial class VitalDatabaseService : IVitalFollowUpDBService
  8. {
  9. private List<string> _gravidaFollowKeys = new List<string>
  10. {
  11. "MaternalHealthManagement",
  12. "PrenatalFollowupServiceRecord",
  13. "PostnatalVisitRecord",
  14. "PostpartumHealthCheckup42Days",
  15. };
  16. /// <summary>
  17. /// 是否孕妇随访
  18. /// </summary>
  19. /// <param name="followUpKey"></param>
  20. /// <returns></returns>
  21. private bool IsGravidaFollowUp(string followUpKey)
  22. {
  23. return _gravidaFollowKeys.Contains(followUpKey);
  24. }
  25. /// <summary>
  26. /// 是否孕妇随访
  27. /// </summary>
  28. /// <param name="followUpKeys"></param>
  29. /// <returns></returns>
  30. private bool IsGravidaFollowUp(List<string> followUpKeys)
  31. {
  32. if (followUpKeys?.Any() ?? false)
  33. {
  34. return _gravidaFollowKeys.Intersect(followUpKeys).Any();
  35. }
  36. return false;
  37. }
  38. }
  39. }