We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a968655 commit 80872d0Copy full SHA for 80872d0
1 file changed
providers/gov/nih/normalizer.py
@@ -189,7 +189,15 @@ class PIContactAgent(Parser):
189
schema = 'Person'
190
191
name = ctx.PI_NAME
192
- related_agents = tools.Map(tools.Delegate(FullIsAffiliatedWith), ctx['org_ctx'])
+ related_agents = tools.Concat(
193
+ tools.Map(tools.Delegate(FullIsAffiliatedWith), ctx['org_ctx']),
194
+ tools.Map(tools.Delegate(DeptIsAffiliatedWith), RunPython('if_dept', ctx))
195
+ )
196
+
197
+ def if_dept(self, ctx):
198
+ if ctx['org_ctx']['ORG_DEPT']:
199
+ return {**ctx['org_ctx'], 'hash_breaker': True}
200
+ return None
201
202
class Extra:
203
pi_id = RunPython(filter_nil, ctx.PI_ID)
0 commit comments