- Find legal_entities Find records in prm.legal_entitities for which flag nhs_verified = false and it was set 3 months 90 (config) days ago.
- Find set legal entity activity_types with nhs_verified = true. For each found record:set nhs_verified = false_entitities.status = Suspended, set legal_entitities.status_reason = 'auto_suspend_legal_entity'
- find contracts by contractor_legal_entity_id=$legal_entity_id and legal_entities.id and status='VERIFIED' AND ops.contracts.type corresponding to activity_type, set ops.contracts.is_suspended=true: PRIMARY_CARE,
reimbursement_activity_types: PHARMACY
, ops.contracts.type to activity_type mapping:https://zube.io/edenlabllc/e-health/c/5969
capitation_activity_typesstatus_reason='auto_suspend_legal_entity'
Page Comparison
General
Content
Integrations