如何根据某些报告条件标记记录? [英] How to flag records based on certain reporting conditions?

查看:80
本文介绍了如何根据某些报告条件标记记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个报告表,我用于报告但想根据某些医疗条件过滤(标记)记录。

报告表示例:

ID名称MedCond报告

1 Pat A 100 N

1 Pat A 101 Y

1 Pat A 102 N

2 Pat B 100 Y

2 Pat B 102 Y


条件例如:


如果患者有:

医疗条件

100

101如果是那么没有100或102

102


基本上对于Pat A,只报告了1种疾病。对于Pat B,报告了两种医疗状况。


有没有合理的方法来处理查询,或者最好是使用VB编码。想要采用VB路线,但我并不熟悉它。


非常感谢任何帮助或建议。


谢谢列弗!

解决方案

lev9shun:

有吗这样做的合理方式...



你究竟在谈论什么?你解释了一个情况,但你没有解释任何问题或在这些情况下想要实现的目标。


NewPa,


我会喜欢创建一个查询或vb脚本,我可以报告有特定疾病的患者。只是需要一些帮助才能开始或指出正确的方向如何这样做。


当前报告表是:

ID名称MedCond报告

1 Pat A 100

1 Pat A 101

1 Pat A 102

2 Pat B 100

2 Pat B 102

我希望此报告表的结果是(参见报告字段):


ID姓名MedCond报告

1拍A 100 N

1拍A 101 Y

1 Pat A 102 N

2 Pat B 100 Y

2 Pat B 102 Y


谢谢,

Lev


101是唯一的例外吗?

Hi all,

I have a reporting table that I use for my reports but would like to filter(flag) records based certain Medical conditions.

Example of reporting table:
ID Name MedCond Reported
1 Pat A 100 N
1 Pat A 101 Y
1 Pat A 102 N
2 Pat B 100 Y
2 Pat B 102 Y

Conditions examples are:

If patients have:
Medical Conditions
100
101 If this is then no 100 or 102
102

Basically for Pat A, only 1 medical condition is reported. And for Pat B, both medical conditions are reported.

Is there a logical way to do this with queries or would it be better to go with VB coding. Would like to take the VB route but I am not that proficient with it.

Any assistance or recommendation is greatly appreciated.

Thanks Lev!

解决方案

lev9shun:
Is there a logical way to do this ...

What is it you''re actually talking about? You explain a situation, but you stopped short of explaining any problem or what you wanted to achieve in these circumstances.


NewPa,

I would like to create a query or vb script where the I can report on patients who has certain medical conditions. Just needing some assistance in getting started or pointed in the right directions on how to do so.

Current reporting table is:
ID Name MedCond Reported
1 Pat A 100
1 Pat A 101
1 Pat A 102
2 Pat B 100
2 Pat B 102

The outcome I would like to have for this reporting table is (see under "Reported" field):

ID Name MedCond Reported
1 Pat A 100 N
1 Pat A 101 Y
1 Pat A 102 N
2 Pat B 100 Y
2 Pat B 102 Y

Thanks,
Lev


And 101 is the only such exception?


这篇关于如何根据某些报告条件标记记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆