← Back to Pack Library
Verticalslibraryuncertifiedv2026.12.0

nursing

Nursing and clinical staffing vertical library pack (RFC 0004): clinical role, specialty, exposure, and credential concepts plus nine clinical compliance requirements covering active nursing licensure (confirm), monthly federal healthcare exclusion screening, OSHA Hepatitis B vaccination and bloodborne pathogens training, OSHA respirator fit testing, HIPAA privacy training, CDC tuberculosis screening, Basic Life Support certification (confirm), and annual clinical competency validation (confirm).

Verify locally with CLI
Validate schema & rules
pnpm ir check packs/nursing/pack.json
Run pack scenarios
pnpm ir test packs/nursing/pack.json
9Requirements
9Concepts
8Scenarios

Requirements (9)

Compliance and operational rules declared in this pack's policies, with authority classification, legal citations, and due/renewal schedules.

Active Nursing License for Work State (confirm)

nursing_license
statutedocumentlicensure
Duesubject: engagement/start_date (-1d) · reviewer: engagement/start_date (-1d)
Expires onnursing/license_expires_on
Renew within30 days
Citations
  • State nurse practice act (confirm)
  • Nurse Licensure Compact for multistate licenses (confirm)

Exclusion List Check

exclusion_list_check
regulationcheckclinical_screening
Dueprovider: engagement/start_date (-1d)
Expires1 month
Renew within7 days
Citations
  • 42 U.S.C. 1320a-7
  • 42 CFR 1001.1901

Hepatitis B Vaccination Offer or Written Declination

hepatitis_b_vaccination
regulationdocumentoccupational_health
Duesubject: engagement/start_date (+10bd)
Citations
  • 29 CFR 1910.1030(f)(2)

Bloodborne Pathogens Training

bloodborne_pathogens_training
regulationdocumentclinical_training
Duesubject: engagement/start_date (on day)
Expires1 year
Renew within30 days
Citations
  • 29 CFR 1910.1030(g)(2)

Respirator Fit Test

respirator_fit_test
regulationdocumentoccupational_health
Duesubject: engagement/start_date (-1d) · reviewer: engagement/start_date (-1d)
Expires1 year
Renew within30 days
Citations
  • 29 CFR 1910.134(f)(2)

HIPAA Privacy Training

hipaa_privacy_training
regulationdocumentclinical_training
Duesubject: engagement/start_date (+30d)
Citations
  • 45 CFR 164.530(b)

Tuberculosis Screening

tb_screening
guidancedocumentoccupational_health
Duesubject: engagement/start_date (-1d) · reviewer: engagement/start_date (-1d)
Citations
  • CDC health care personnel TB screening guidance, 2019

Basic Life Support Certification (confirm)

bls_certification
accreditationdocumentlicensure
Duesubject: engagement/start_date (-1d) · reviewer: engagement/start_date (-1d)
Expires onnursing/bls_expires_on
Renew within30 days
Citations
  • Facility and accreditation requirements (confirm)

Competency and Skills Checklist (confirm)

competency_checklist
accreditationdocumentclinical_training
Duesubject: engagement/start_date (-1d) · reviewer: engagement/start_date (-1d)
Expires1 year
Renew within30 days
Citations
  • Accreditation standards for staff competence (confirm)

Concepts (9)

Typed domain facts introduced by this pack that policies evaluate against.

ConceptTypeChoices / Description
nursing/rolechoice

Clinical nursing or allied health role of the principal (RN, LPN, CNA, or allied health)

rnlpncnaallied
nursing/specialtystring

Clinical specialty or practice unit for the engagement (for example critical_care, emergency, medical_surgical, perioperative)

role/patient_facingboolean

Whether the role involves direct clinical care or access to patient data and protected health information

role/exposed_to_bloodboolean

Whether the role carries reasonably anticipated occupational exposure to blood or other potentially infectious materials (29 CFR 1910.1030)

role/uses_respiratorboolean

Whether the role requires use of a tight-fitting respirator (29 CFR 1910.134)

nursing/license_statuschoice

Current standing of the principal's nursing license for the work state (single-state or multistate compact)

activependingexpiredsuspendedrevoked
nursing/license_expires_ondate

Expiration date of the principal's active nursing license (YYYY-MM-DD)

nursing/bls_statuschoice

Current standing of the principal's Basic Life Support (BLS) certification card

activependingexpired
nursing/bls_expires_ondate

Expiration date printed on the principal's Basic Life Support (BLS) certification card (YYYY-MM-DD)

Scenarios (8)

Executable compliance test cases verified against this pack by pnpm ir test.

rn-full-clinical-applies
as of 2026-12-01

Patient-facing RN with blood exposure and respirator use triggers all nine nursing compliance requirements.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=rnnursing/specialty=critical_carerole/patient_facing=truerole/exposed_to_blood=truerole/uses_respirator=truenursing/license_status=activenursing/license_expires_on=2027-09-30nursing/bls_status=activenursing/bls_expires_on=2027-08-31
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ respirator_fit_test+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklistnursing_license: availableexclusion_list_check: availablehepatitis_b_vaccination: availablebloodborne_pathogens_training: availablerespirator_fit_test: availablehipaa_privacy_training: availabletb_screening: availablebls_certification: availablecompetency_checklist: available
cna-no-bls-no-respirator
as of 2026-12-01

Patient-facing CNA exposed to blood without respirator use requires nursing license and clinical/bloodborne items, but not BLS certification or respirator fit test.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=cnanursing/specialty=medical_surgicalrole/patient_facing=truerole/exposed_to_blood=truerole/uses_respirator=falsenursing/license_status=activenursing/license_expires_on=2027-10-15
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ hipaa_privacy_training+ tb_screening+ competency_checklist− bls_certification− respirator_fit_testnursing_license: availableexclusion_list_check: availablehepatitis_b_vaccination: availablebloodborne_pathogens_training: availablehipaa_privacy_training: availabletb_screening: availablecompetency_checklist: available
allied-non-patient-facing-exempt
as of 2026-12-01

Non-patient-facing allied role without blood exposure or respirator use does not trigger any of the nine nursing requirements.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=alliednursing/specialty=health_informaticsrole/patient_facing=falserole/exposed_to_blood=falserole/uses_respirator=false
Expected outcomes
− nursing_license− exclusion_list_check− hepatitis_b_vaccination− bloodborne_pathogens_training− respirator_fit_test− hipaa_privacy_training− tb_screening− bls_certification− competency_checklist
missing-role-and-exposure-tentative
as of 2026-12-011 step

When nursing/role and role exposure flags are unknown, all nine requirements are tentative and blocked on missing facts; supplying LPN with patient_facing=true and no blood/respirator exposure resolves to the applicable subset.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ respirator_fit_test+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklistnursing_license: blocked_on_factsexclusion_list_check: blocked_on_factshepatitis_b_vaccination: blocked_on_factsbloodborne_pathogens_training: blocked_on_factsrespirator_fit_test: blocked_on_factshipaa_privacy_training: blocked_on_factstb_screening: blocked_on_factsbls_certification: blocked_on_factscompetency_checklist: blocked_on_facts
missing-start-date-blocks-due
as of 2026-12-011 step

When engagement/start_date is missing, all applicable nursing requirements wait on engagement/start_date until supplied.

Given facts
engagement/reviewer=usr_cred_01nursing/role=rnrole/patient_facing=truerole/exposed_to_blood=truerole/uses_respirator=true
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ respirator_fit_test+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklistnursing_license: blocked_on_factsexclusion_list_check: blocked_on_factshepatitis_b_vaccination: blocked_on_factsbloodborne_pathogens_training: blocked_on_factsrespirator_fit_test: blocked_on_factshipaa_privacy_training: blocked_on_factstb_screening: blocked_on_factsbls_certification: blocked_on_factscompetency_checklist: blocked_on_facts
due-dates-and-overdue-progression
as of 2026-12-064 steps

Verifies all four due-date schedules: before start (-1 day), at initial assignment (day 0), within 10 working days (business_days: 10), and within 30 calendar days.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=rnrole/patient_facing=truerole/exposed_to_blood=truerole/uses_respirator=true
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ respirator_fit_test+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklistnursing_license: availableexclusion_list_check: availablehepatitis_b_vaccination: availablebloodborne_pathogens_training: availablerespirator_fit_test: availablehipaa_privacy_training: availabletb_screening: availablebls_certification: availablecompetency_checklist: availablewake_at: 2026-12-07
license-and-bls-expires-on-renewal-and-expired
as of 2026-12-054 steps

Completed nursing license and BLS certification open renewal items 30 days before nursing/license_expires_on and nursing/bls_expires_on and transition to expired once those dates are reached.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=rnnursing/specialty=emergencyrole/patient_facing=truerole/exposed_to_blood=falserole/uses_respirator=falsenursing/license_status=activenursing/license_expires_on=2027-03-15nursing/bls_status=activenursing/bls_expires_on=2027-04-20
Expected outcomes
+ nursing_license+ exclusion_list_check+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklist− hepatitis_b_vaccination− bloodborne_pathogens_training− respirator_fit_test− nursing_license:renewal− bls_certification:renewalnursing_license: completebls_certification: completetb_screening: completehipaa_privacy_training: complete
monthly-exclusion-and-annual-renewals-and-expiry
as of 2026-12-054 steps

Completed monthly exclusion check and annual bloodborne pathogens, respirator fit test, and competency checklist open renewal items within their renewal windows and transition to expired past their periods.

Given facts
engagement/start_date=2026-12-07engagement/reviewer=usr_cred_01nursing/role=rnnursing/specialty=critical_carerole/patient_facing=truerole/exposed_to_blood=truerole/uses_respirator=truenursing/license_status=activenursing/license_expires_on=2028-12-31nursing/bls_status=activenursing/bls_expires_on=2028-12-31
Expected outcomes
+ nursing_license+ exclusion_list_check+ hepatitis_b_vaccination+ bloodborne_pathogens_training+ respirator_fit_test+ hipaa_privacy_training+ tb_screening+ bls_certification+ competency_checklist− exclusion_list_check:renewal− bloodborne_pathogens_training:renewal− respirator_fit_test:renewal− competency_checklist:renewalexclusion_list_check: completebloodborne_pathogens_training: completerespirator_fit_test: completecompetency_checklist: completewake_at: 2026-12-29

Pack JSON

Show raw packs/nursing/pack.json
{
  "format": 1,
  "name": "nursing",
  "version": "2026.12.0",
  "kind": "library",
  "description": "Nursing and clinical staffing vertical library pack (RFC 0004): clinical role, specialty, exposure, and credential concepts plus nine clinical compliance requirements covering active nursing licensure (confirm), monthly federal healthcare exclusion screening, OSHA Hepatitis B vaccination and bloodborne pathogens training, OSHA respirator fit testing, HIPAA privacy training, CDC tuberculosis screening, Basic Life Support certification (confirm), and annual clinical competency validation (confirm).",
  "requires": [
    {
      "name": "credentials-core",
      "range": "^2026.12"
    },
    {
      "name": "screening-core",
      "range": "^2026.12"
    },
    {
      "name": "us-federal",
      "range": "^2026.12"
    }
  ],
  "concepts": [
    {
      "key": "nursing/role",
      "type": "choice",
      "options": [
        "rn",
        "lpn",
        "cna",
        "allied"
      ],
      "description": "Clinical nursing or allied health role of the principal (RN, LPN, CNA, or allied health)"
    },
    {
      "key": "nursing/specialty",
      "type": "string",
      "description": "Clinical specialty or practice unit for the engagement (for example critical_care, emergency, medical_surgical, perioperative)"
    },
    {
      "key": "role/patient_facing",
      "type": "boolean",
      "description": "Whether the role involves direct clinical care or access to patient data and protected health information"
    },
    {
      "key": "role/exposed_to_blood",
      "type": "boolean",
      "description": "Whether the role carries reasonably anticipated occupational exposure to blood or other potentially infectious materials (29 CFR 1910.1030)"
    },
    {
      "key": "role/uses_respirator",
      "type": "boolean",
      "description": "Whether the role requires use of a tight-fitting respirator (29 CFR 1910.134)"
    },
    {
      "key": "nursing/license_status",
      "type": "choice",
      "options": [
        "active",
        "pending",
        "expired",
        "suspended",
        "revoked"
      ],
      "description": "Current standing of the principal's nursing license for the work state (single-state or multistate compact)"
    },
    {
      "key": "nursing/license_expires_on",
      "type": "date",
      "description": "Expiration date of the principal's active nursing license (YYYY-MM-DD)"
    },
    {
      "key": "nursing/bls_status",
      "type": "choice",
      "options": [
        "active",
        "pending",
        "expired"
      ],
      "description": "Current standing of the principal's Basic Life Support (BLS) certification card"
    },
    {
      "key": "nursing/bls_expires_on",
      "type": "date",
      "description": "Expiration date printed on the principal's Basic Life Support (BLS) certification card (YYYY-MM-DD)"
    }
  ],
  "templates": [
    {
      "key": "nursing_license_verification",
      "version": "2026.1.0",
      "title": "Active Nursing License Verification",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        },
        {
          "name": "reviewer",
          "kind": "user",
          "label": "Credentialing Reviewer",
          "after": [
            "subject"
          ]
        }
      ],
      "sections": [
        {
          "id": "license_submission",
          "role": "subject",
          "title": "Nursing License Details",
          "fields": [
            {
              "id": "license_type",
              "type": "choice",
              "label": "License or Certification Type",
              "options": [
                "rn",
                "lpn",
                "cna"
              ],
              "required": true
            },
            {
              "id": "license_state",
              "type": "text",
              "label": "Issuing Jurisdiction",
              "required": true
            },
            {
              "id": "license_number",
              "type": "text",
              "label": "License or Registry Number",
              "required": true,
              "sensitive": true
            },
            {
              "id": "is_multistate_compact",
              "type": "boolean",
              "label": "Multistate Compact Privilege Applies",
              "required": true
            },
            {
              "id": "expires_on",
              "type": "date",
              "label": "License Expiration Date",
              "required": true
            }
          ]
        },
        {
          "id": "license_verification",
          "role": "reviewer",
          "title": "Primary Source Licensure Verification",
          "readable": [
            "license_submission"
          ],
          "fields": [
            {
              "id": "verification_source",
              "type": "choice",
              "label": "Verification Source",
              "options": [
                "issuing_board",
                "national_database",
                "document_review"
              ],
              "required": true
            },
            {
              "id": "verified_on",
              "type": "date",
              "label": "Verification Date",
              "required": true
            },
            {
              "id": "license_status",
              "type": "choice",
              "label": "Verified Standing",
              "options": [
                "active",
                "pending",
                "expired",
                "suspended",
                "revoked"
              ],
              "required": true
            },
            {
              "id": "disciplinary_action",
              "type": "boolean",
              "label": "Open or Historical Disciplinary Action Found",
              "required": true
            }
          ],
          "signature": {
            "id": "reviewer_signature",
            "attestation": "I attest that I verified the clinician's nursing license standing for the work state against the recorded verification source.",
            "covers": [
              "license_submission",
              "license_verification"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_hep_b_vaccination",
      "version": "2026.1.0",
      "title": "Hepatitis B Vaccination Offer or Written Declination (29 CFR 1910.1030(f)(2))",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        }
      ],
      "sections": [
        {
          "id": "hepatitis_b_status",
          "role": "subject",
          "title": "Hepatitis B Vaccination Election",
          "fields": [
            {
              "id": "election",
              "type": "choice",
              "label": "Vaccination Status or Election",
              "options": [
                "vaccinated",
                "in_progress",
                "declined_in_writing",
                "immunity_confirmed"
              ],
              "required": true
            },
            {
              "id": "record_date",
              "type": "date",
              "label": "Date of Vaccination Series, Titer, or Declination",
              "required": true
            },
            {
              "id": "declination_statement_acknowledged",
              "type": "boolean",
              "label": "If declining, I acknowledge the mandatory OSHA Hepatitis B declination statement",
              "required": false
            }
          ],
          "signature": {
            "id": "subject_signature",
            "attestation": "I confirm that the Hepatitis B vaccination series has been offered to me at no cost or that I have documented prior immunity or signed a written declination pursuant to 29 CFR 1910.1030(f)(2).",
            "covers": [
              "hepatitis_b_status"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_bloodborne_pathogens_training",
      "version": "2026.1.0",
      "title": "Bloodborne Pathogens Training Record (29 CFR 1910.1030(g)(2))",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        }
      ],
      "sections": [
        {
          "id": "training_record",
          "role": "subject",
          "title": "Bloodborne Pathogens Training Completion",
          "fields": [
            {
              "id": "completed_date",
              "type": "date",
              "label": "Training Completion Date",
              "required": true
            },
            {
              "id": "delivery_format",
              "type": "choice",
              "label": "Training Delivery Format",
              "options": [
                "interactive_online",
                "live_in_person",
                "live_virtual"
              ],
              "required": true
            },
            {
              "id": "program_title",
              "type": "text",
              "label": "Training Program Title",
              "required": true
            }
          ],
          "signature": {
            "id": "subject_signature",
            "attestation": "I attest that I have completed bloodborne pathogens training covering exposure control, universal precautions, and post-exposure procedures pursuant to 29 CFR 1910.1030(g)(2).",
            "covers": [
              "training_record"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_respirator_fit_test",
      "version": "2026.1.0",
      "title": "Respirator Fit Test Record (29 CFR 1910.134(f)(2))",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        },
        {
          "name": "reviewer",
          "kind": "user",
          "label": "Occupational Health Reviewer",
          "after": [
            "subject"
          ]
        }
      ],
      "sections": [
        {
          "id": "respirator_clearance",
          "role": "subject",
          "title": "Respirator Medical Clearance",
          "fields": [
            {
              "id": "medical_evaluation_cleared",
              "type": "boolean",
              "label": "Medical evaluation completed and cleared for respirator use",
              "required": true
            },
            {
              "id": "respirator_type",
              "type": "choice",
              "label": "Respirator Class",
              "options": [
                "particulate_respirator",
                "elastomeric_half_mask",
                "powered_air_purifying"
              ],
              "required": true
            }
          ]
        },
        {
          "id": "fit_test_result",
          "role": "reviewer",
          "title": "Fit Test Verification",
          "readable": [
            "respirator_clearance"
          ],
          "fields": [
            {
              "id": "fit_test_date",
              "type": "date",
              "label": "Fit Test Date",
              "required": true
            },
            {
              "id": "fit_test_method",
              "type": "choice",
              "label": "Fit Test Method",
              "options": [
                "qualitative",
                "quantitative"
              ],
              "required": true
            },
            {
              "id": "model_and_size",
              "type": "text",
              "label": "Approved Respirator Model and Size",
              "required": true
            },
            {
              "id": "fit_test_outcome",
              "type": "choice",
              "label": "Fit Test Outcome",
              "options": [
                "passed",
                "failed"
              ],
              "required": true
            }
          ],
          "signature": {
            "id": "reviewer_signature",
            "attestation": "I confirm that the respirator fit test was conducted and documented in accordance with 29 CFR 1910.134(f)(2).",
            "covers": [
              "respirator_clearance",
              "fit_test_result"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_hipaa_privacy_training",
      "version": "2026.1.0",
      "title": "HIPAA Privacy Training Attestation (45 CFR 164.530(b))",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        }
      ],
      "sections": [
        {
          "id": "privacy_training",
          "role": "subject",
          "title": "HIPAA Privacy and Confidentiality Training",
          "fields": [
            {
              "id": "completed_date",
              "type": "date",
              "label": "Training Completion Date",
              "required": true
            },
            {
              "id": "policy_acknowledged",
              "type": "boolean",
              "label": "I have completed HIPAA privacy training and agree to safeguard protected health information",
              "required": true
            }
          ],
          "signature": {
            "id": "subject_signature",
            "attestation": "I attest that I have completed HIPAA privacy policy training pursuant to 45 CFR 164.530(b).",
            "covers": [
              "privacy_training"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_tb_screening",
      "version": "2026.1.0",
      "title": "Tuberculosis Screening and Clearance",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        },
        {
          "name": "reviewer",
          "kind": "user",
          "label": "Occupational Health Reviewer",
          "after": [
            "subject"
          ]
        }
      ],
      "sections": [
        {
          "id": "tb_submission",
          "role": "subject",
          "title": "TB Screening Record",
          "fields": [
            {
              "id": "screening_date",
              "type": "date",
              "label": "Screening Date",
              "required": true
            },
            {
              "id": "screening_method",
              "type": "choice",
              "label": "Screening Method",
              "options": [
                "igra_blood_test",
                "tst_skin_test",
                "chest_radiograph",
                "symptom_questionnaire"
              ],
              "required": true
            },
            {
              "id": "symptom_screen_clear",
              "type": "boolean",
              "label": "Individual TB risk assessment and symptom evaluation completed with no active symptoms",
              "required": true
            }
          ],
          "signature": {
            "id": "subject_signature",
            "attestation": "I attest that the tuberculosis screening information provided above is accurate.",
            "covers": [
              "tb_submission"
            ]
          }
        },
        {
          "id": "tb_clearance_review",
          "role": "reviewer",
          "title": "TB Clearance Review",
          "readable": [
            "tb_submission"
          ],
          "fields": [
            {
              "id": "clearance_status",
              "type": "choice",
              "label": "Clearance Status",
              "options": [
                "clear",
                "follow_up_required"
              ],
              "required": true
            },
            {
              "id": "reviewed_on",
              "type": "date",
              "label": "Review Date",
              "required": true
            }
          ],
          "signature": {
            "id": "reviewer_signature",
            "attestation": "I confirm that baseline tuberculosis screening has been reviewed against CDC 2019 health care personnel TB screening guidance.",
            "covers": [
              "tb_submission",
              "tb_clearance_review"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_bls_certification",
      "version": "2026.1.0",
      "title": "Basic Life Support (BLS) Certification Verification",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        },
        {
          "name": "reviewer",
          "kind": "user",
          "label": "Credentialing Reviewer",
          "after": [
            "subject"
          ]
        }
      ],
      "sections": [
        {
          "id": "bls_submission",
          "role": "subject",
          "title": "BLS Card Submission",
          "fields": [
            {
              "id": "certification_id",
              "type": "text",
              "label": "BLS Certification Card ID",
              "required": true
            },
            {
              "id": "issued_date",
              "type": "date",
              "label": "Card Issue Date",
              "required": true
            },
            {
              "id": "expires_on",
              "type": "date",
              "label": "Card Expiration Date",
              "required": true
            }
          ]
        },
        {
          "id": "bls_verification",
          "role": "reviewer",
          "title": "BLS Card Verification",
          "readable": [
            "bls_submission"
          ],
          "fields": [
            {
              "id": "bls_status",
              "type": "choice",
              "label": "Verified Card Standing",
              "options": [
                "active",
                "pending",
                "expired"
              ],
              "required": true
            },
            {
              "id": "verified_on",
              "type": "date",
              "label": "Verification Date",
              "required": true
            }
          ],
          "signature": {
            "id": "reviewer_signature",
            "attestation": "I confirm that the clinician's Basic Life Support certification card has been verified as current.",
            "covers": [
              "bls_submission",
              "bls_verification"
            ]
          }
        }
      ]
    },
    {
      "key": "nursing_competency_checklist",
      "version": "2026.1.0",
      "title": "Clinical Competency and Skills Checklist",
      "roles": [
        {
          "name": "subject",
          "kind": "person",
          "label": "Clinician"
        },
        {
          "name": "reviewer",
          "kind": "user",
          "label": "Clinical Reviewer",
          "after": [
            "subject"
          ]
        }
      ],
      "sections": [
        {
          "id": "skills_self_assessment",
          "role": "subject",
          "title": "Specialty Skills Self-Assessment",
          "fields": [
            {
              "id": "specialty_area",
              "type": "text",
              "label": "Clinical Specialty Area",
              "required": true
            },
            {
              "id": "assessment_date",
              "type": "date",
              "label": "Self-Assessment Date",
              "required": true
            },
            {
              "id": "self_assessment_completed",
              "type": "boolean",
              "label": "I have completed the specialty competency and skills checklist accurately",
              "required": true
            }
          ],
          "signature": {
            "id": "subject_signature",
            "attestation": "I attest that my clinical skills self-assessment accurately reflects my current competence.",
            "covers": [
              "skills_self_assessment"
            ]
          }
        },
        {
          "id": "competency_validation",
          "role": "reviewer",
          "title": "Clinical Competency Validation",
          "readable": [
            "skills_self_assessment"
          ],
          "fields": [
            {
              "id": "validation_date",
              "type": "date",
              "label": "Validation Date",
              "required": true
            },
            {
              "id": "competency_status",
              "type": "choice",
              "label": "Validation Determination",
              "options": [
                "competent",
                "remediation_required"
              ],
              "required": true
            }
          ],
          "signature": {
            "id": "reviewer_signature",
            "attestation": "I confirm that the clinician's specialty competency and skills checklist has been reviewed and validated.",
            "covers": [
              "skills_self_assessment",
              "competency_validation"
            ]
          }
        }
      ]
    }
  ],
  "policies": [
    {
      "key": "nursing",
      "version": "2026.12.0",
      "facts": {
        "engagement/start_date": {
          "type": "date"
        },
        "engagement/reviewer": {
          "type": "string"
        },
        "nursing/role": {
          "type": "choice",
          "options": [
            "rn",
            "lpn",
            "cna",
            "allied"
          ]
        },
        "nursing/specialty": {
          "type": "string"
        },
        "role/patient_facing": {
          "type": "boolean"
        },
        "role/exposed_to_blood": {
          "type": "boolean"
        },
        "role/uses_respirator": {
          "type": "boolean"
        },
        "nursing/license_status": {
          "type": "choice",
          "options": [
            "active",
            "pending",
            "expired",
            "suspended",
            "revoked"
          ]
        },
        "nursing/license_expires_on": {
          "type": "date"
        },
        "nursing/bls_status": {
          "type": "choice",
          "options": [
            "active",
            "pending",
            "expired"
          ]
        },
        "nursing/bls_expires_on": {
          "type": "date"
        }
      },
      "stages": [
        {
          "id": "licensure",
          "title": "Licensure and Certifications"
        },
        {
          "id": "clinical_screening",
          "title": "Clinical Exclusion Screening"
        },
        {
          "id": "occupational_health",
          "title": "Occupational Health and Safety"
        },
        {
          "id": "clinical_training",
          "title": "Clinical Training and Competency"
        }
      ],
      "requirements": {
        "nursing_license": {
          "title": "Active Nursing License for Work State (confirm)",
          "kind": "document",
          "template": "nursing_license_verification",
          "stage": "licensure",
          "parties": {
            "subject": "subject",
            "reviewer": "engagement/reviewer"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": -1
            },
            "reviewer": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "expires_on": "nursing/license_expires_on",
          "renew_within": {
            "days": 30
          },
          "on_unknown": "wait",
          "authority": "statute",
          "cites": [
            "State nurse practice act (confirm)",
            "Nurse Licensure Compact for multistate licenses (confirm)"
          ]
        },
        "exclusion_list_check": {
          "title": "Exclusion List Check",
          "kind": "check",
          "provider": "exclusion-screening",
          "stage": "clinical_screening",
          "parties": {
            "provider": "system:exclusion-screening"
          },
          "due": {
            "provider": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "expires": {
            "months": 1
          },
          "renew_within": {
            "days": 7
          },
          "on_unknown": "wait",
          "authority": "regulation",
          "cites": [
            "42 U.S.C. 1320a-7",
            "42 CFR 1001.1901"
          ]
        },
        "hepatitis_b_vaccination": {
          "title": "Hepatitis B Vaccination Offer or Written Declination",
          "kind": "document",
          "template": "nursing_hep_b_vaccination",
          "stage": "occupational_health",
          "parties": {
            "subject": "subject"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "business_days": 10
            }
          },
          "reuse": {
            "outcome": "satisfies"
          },
          "on_unknown": "wait",
          "authority": "regulation",
          "cites": [
            "29 CFR 1910.1030(f)(2)"
          ]
        },
        "bloodborne_pathogens_training": {
          "title": "Bloodborne Pathogens Training",
          "kind": "document",
          "template": "nursing_bloodborne_pathogens_training",
          "stage": "clinical_training",
          "parties": {
            "subject": "subject"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": 0
            }
          },
          "expires": {
            "years": 1
          },
          "renew_within": {
            "days": 30
          },
          "reuse": {
            "max_age_days": 365,
            "outcome": "satisfies"
          },
          "on_unknown": "wait",
          "authority": "regulation",
          "cites": [
            "29 CFR 1910.1030(g)(2)"
          ]
        },
        "respirator_fit_test": {
          "title": "Respirator Fit Test",
          "kind": "document",
          "template": "nursing_respirator_fit_test",
          "stage": "occupational_health",
          "parties": {
            "subject": "subject",
            "reviewer": "engagement/reviewer"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": -1
            },
            "reviewer": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "expires": {
            "years": 1
          },
          "renew_within": {
            "days": 30
          },
          "on_unknown": "wait",
          "authority": "regulation",
          "cites": [
            "29 CFR 1910.134(f)(2)"
          ]
        },
        "hipaa_privacy_training": {
          "title": "HIPAA Privacy Training",
          "kind": "document",
          "template": "nursing_hipaa_privacy_training",
          "stage": "clinical_training",
          "parties": {
            "subject": "subject"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": 30
            }
          },
          "reuse": {
            "max_age_days": 365,
            "outcome": "satisfies"
          },
          "on_unknown": "wait",
          "authority": "regulation",
          "cites": [
            "45 CFR 164.530(b)"
          ]
        },
        "tb_screening": {
          "title": "Tuberculosis Screening",
          "kind": "document",
          "template": "nursing_tb_screening",
          "stage": "occupational_health",
          "parties": {
            "subject": "subject",
            "reviewer": "engagement/reviewer"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": -1
            },
            "reviewer": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "reuse": {
            "max_age_days": 365,
            "outcome": "satisfies"
          },
          "on_unknown": "wait",
          "authority": "guidance",
          "cites": [
            "CDC health care personnel TB screening guidance, 2019"
          ]
        },
        "bls_certification": {
          "title": "Basic Life Support Certification (confirm)",
          "kind": "document",
          "template": "nursing_bls_certification",
          "stage": "licensure",
          "parties": {
            "subject": "subject",
            "reviewer": "engagement/reviewer"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": -1
            },
            "reviewer": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "expires_on": "nursing/bls_expires_on",
          "renew_within": {
            "days": 30
          },
          "reuse": {
            "max_age_days": 730,
            "outcome": "satisfies"
          },
          "on_unknown": "wait",
          "authority": "accreditation",
          "cites": [
            "Facility and accreditation requirements (confirm)"
          ]
        },
        "competency_checklist": {
          "title": "Competency and Skills Checklist (confirm)",
          "kind": "document",
          "template": "nursing_competency_checklist",
          "stage": "clinical_training",
          "parties": {
            "subject": "subject",
            "reviewer": "engagement/reviewer"
          },
          "due": {
            "subject": {
              "relative_to": "engagement/start_date",
              "days": -1
            },
            "reviewer": {
              "relative_to": "engagement/start_date",
              "days": -1
            }
          },
          "expires": {
            "years": 1
          },
          "renew_within": {
            "days": 30
          },
          "on_unknown": "wait",
          "authority": "accreditation",
          "cites": [
            "Accreditation standards for staff competence (confirm)"
          ]
        }
      },
      "policies": [
        {
          "id": "nursing-active-license",
          "title": "Active nursing license for the work state before start for RN, LPN, and CNA roles (confirm)",
          "when": {
            "fact": "nursing/role",
            "operator": "in",
            "value": [
              "rn",
              "lpn",
              "cna"
            ]
          },
          "require": [
            "nursing_license"
          ],
          "optional": false,
          "cites": [
            "State nurse practice act (confirm)",
            "Nurse Licensure Compact for multistate licenses (confirm)"
          ]
        },
        {
          "id": "nursing-exclusion-list-check",
          "title": "Monthly federal healthcare exclusion list check before start for clinical roles",
          "when": {
            "all": [
              {
                "fact": "nursing/role",
                "operator": "in",
                "value": [
                  "rn",
                  "lpn",
                  "cna",
                  "allied"
                ]
              },
              {
                "fact": "role/patient_facing",
                "operator": "equal",
                "value": true
              }
            ]
          },
          "require": [
            "exclusion_list_check"
          ],
          "optional": false,
          "cites": [
            "42 U.S.C. 1320a-7",
            "42 CFR 1001.1901"
          ]
        },
        {
          "id": "nursing-hepatitis-b-vaccination",
          "title": "Hepatitis B vaccination offered or declined in writing within 10 working days for roles exposed to blood",
          "when": {
            "fact": "role/exposed_to_blood",
            "operator": "equal",
            "value": true
          },
          "require": [
            "hepatitis_b_vaccination"
          ],
          "optional": false,
          "cites": [
            "29 CFR 1910.1030(f)(2)"
          ]
        },
        {
          "id": "nursing-bloodborne-pathogens-training",
          "title": "Bloodborne pathogens training at initial assignment and annually for roles exposed to blood",
          "when": {
            "fact": "role/exposed_to_blood",
            "operator": "equal",
            "value": true
          },
          "require": [
            "bloodborne_pathogens_training"
          ],
          "optional": false,
          "cites": [
            "29 CFR 1910.1030(g)(2)"
          ]
        },
        {
          "id": "nursing-respirator-fit-test",
          "title": "Respirator fit test before first use and annually for roles using respirators",
          "when": {
            "fact": "role/uses_respirator",
            "operator": "equal",
            "value": true
          },
          "require": [
            "respirator_fit_test"
          ],
          "optional": false,
          "cites": [
            "29 CFR 1910.134(f)(2)"
          ]
        },
        {
          "id": "nursing-hipaa-privacy-training",
          "title": "HIPAA privacy training within a reasonable time of joining for roles with patient data access",
          "when": {
            "fact": "role/patient_facing",
            "operator": "equal",
            "value": true
          },
          "require": [
            "hipaa_privacy_training"
          ],
          "optional": false,
          "cites": [
            "45 CFR 164.530(b)"
          ]
        },
        {
          "id": "nursing-tb-screening",
          "title": "Tuberculosis screening before start for clinical roles",
          "when": {
            "all": [
              {
                "fact": "nursing/role",
                "operator": "in",
                "value": [
                  "rn",
                  "lpn",
                  "cna",
                  "allied"
                ]
              },
              {
                "fact": "role/patient_facing",
                "operator": "equal",
                "value": true
              }
            ]
          },
          "require": [
            "tb_screening"
          ],
          "optional": false,
          "cites": [
            "CDC health care personnel TB screening guidance, 2019"
          ]
        },
        {
          "id": "nursing-bls-certification",
          "title": "Active Basic Life Support certification before start for RN and LPN roles (confirm)",
          "when": {
            "fact": "nursing/role",
            "operator": "in",
            "value": [
              "rn",
              "lpn"
            ]
          },
          "require": [
            "bls_certification"
          ],
          "optional": false,
          "cites": [
            "Facility and accreditation requirements (confirm)"
          ]
        },
        {
          "id": "nursing-competency-checklist",
          "title": "Annual competency and skills checklist before start for clinical roles (confirm)",
          "when": {
            "all": [
              {
                "fact": "nursing/role",
                "operator": "in",
                "value": [
                  "rn",
                  "lpn",
                  "cna",
                  "allied"
                ]
              },
              {
                "fact": "role/patient_facing",
                "operator": "equal",
                "value": true
              }
            ]
          },
          "require": [
            "competency_checklist"
          ],
          "optional": false,
          "cites": [
            "Accreditation standards for staff competence (confirm)"
          ]
        }
      ],
      "calendar": {
        "holidays": [
          "2026-01-01",
          "2026-01-19",
          "2026-02-16",
          "2026-05-25",
          "2026-06-19",
          "2026-07-03",
          "2026-07-04",
          "2026-09-07",
          "2026-10-12",
          "2026-11-11",
          "2026-11-26",
          "2026-12-25",
          "2027-01-01"
        ]
      }
    }
  ],
  "scenarios": [
    {
      "name": "rn-full-clinical-applies",
      "description": "Patient-facing RN with blood exposure and respirator use triggers all nine nursing compliance requirements.",
      "policy_set": "nursing",
      "as_of": "2026-12-01",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "rn",
        "nursing/specialty": "critical_care",
        "role/patient_facing": true,
        "role/exposed_to_blood": true,
        "role/uses_respirator": true,
        "nursing/license_status": "active",
        "nursing/license_expires_on": "2027-09-30",
        "nursing/bls_status": "active",
        "nursing/bls_expires_on": "2027-08-31"
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "not_required": [],
        "states": {
          "nursing_license": "available",
          "exclusion_list_check": "available",
          "hepatitis_b_vaccination": "available",
          "bloodborne_pathogens_training": "available",
          "respirator_fit_test": "available",
          "hipaa_privacy_training": "available",
          "tb_screening": "available",
          "bls_certification": "available",
          "competency_checklist": "available"
        },
        "missing_facts": []
      }
    },
    {
      "name": "cna-no-bls-no-respirator",
      "description": "Patient-facing CNA exposed to blood without respirator use requires nursing license and clinical/bloodborne items, but not BLS certification or respirator fit test.",
      "policy_set": "nursing",
      "as_of": "2026-12-01",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "cna",
        "nursing/specialty": "medical_surgical",
        "role/patient_facing": true,
        "role/exposed_to_blood": true,
        "role/uses_respirator": false,
        "nursing/license_status": "active",
        "nursing/license_expires_on": "2027-10-15"
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "hipaa_privacy_training",
          "tb_screening",
          "competency_checklist"
        ],
        "not_required": [
          "bls_certification",
          "respirator_fit_test"
        ],
        "states": {
          "nursing_license": "available",
          "exclusion_list_check": "available",
          "hepatitis_b_vaccination": "available",
          "bloodborne_pathogens_training": "available",
          "hipaa_privacy_training": "available",
          "tb_screening": "available",
          "competency_checklist": "available"
        },
        "missing_facts": []
      }
    },
    {
      "name": "allied-non-patient-facing-exempt",
      "description": "Non-patient-facing allied role without blood exposure or respirator use does not trigger any of the nine nursing requirements.",
      "policy_set": "nursing",
      "as_of": "2026-12-01",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "allied",
        "nursing/specialty": "health_informatics",
        "role/patient_facing": false,
        "role/exposed_to_blood": false,
        "role/uses_respirator": false
      },
      "expect": {
        "required": [],
        "not_required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "missing_facts": []
      }
    },
    {
      "name": "missing-role-and-exposure-tentative",
      "description": "When nursing/role and role exposure flags are unknown, all nine requirements are tentative and blocked on missing facts; supplying LPN with patient_facing=true and no blood/respirator exposure resolves to the applicable subset.",
      "policy_set": "nursing",
      "as_of": "2026-12-01",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01"
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "not_required": [],
        "states": {
          "nursing_license": "blocked_on_facts",
          "exclusion_list_check": "blocked_on_facts",
          "hepatitis_b_vaccination": "blocked_on_facts",
          "bloodborne_pathogens_training": "blocked_on_facts",
          "respirator_fit_test": "blocked_on_facts",
          "hipaa_privacy_training": "blocked_on_facts",
          "tb_screening": "blocked_on_facts",
          "bls_certification": "blocked_on_facts",
          "competency_checklist": "blocked_on_facts"
        },
        "missing_facts": [
          "nursing/role",
          "role/exposed_to_blood",
          "role/patient_facing",
          "role/uses_respirator"
        ]
      },
      "steps": [
        {
          "name": "supply-lpn-facts-without-blood-or-respirator",
          "set_facts": {
            "nursing/role": "lpn",
            "role/patient_facing": true,
            "role/exposed_to_blood": false,
            "role/uses_respirator": false
          },
          "expect": {
            "required": [
              "nursing_license",
              "exclusion_list_check",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "competency_checklist"
            ],
            "not_required": [
              "hepatitis_b_vaccination",
              "bloodborne_pathogens_training",
              "respirator_fit_test"
            ],
            "states": {
              "nursing_license": "available",
              "exclusion_list_check": "available",
              "hipaa_privacy_training": "available",
              "tb_screening": "available",
              "bls_certification": "available",
              "competency_checklist": "available"
            },
            "missing_facts": []
          }
        }
      ]
    },
    {
      "name": "missing-start-date-blocks-due",
      "description": "When engagement/start_date is missing, all applicable nursing requirements wait on engagement/start_date until supplied.",
      "policy_set": "nursing",
      "as_of": "2026-12-01",
      "facts": {
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "rn",
        "role/patient_facing": true,
        "role/exposed_to_blood": true,
        "role/uses_respirator": true
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "not_required": [],
        "states": {
          "nursing_license": "blocked_on_facts",
          "exclusion_list_check": "blocked_on_facts",
          "hepatitis_b_vaccination": "blocked_on_facts",
          "bloodborne_pathogens_training": "blocked_on_facts",
          "respirator_fit_test": "blocked_on_facts",
          "hipaa_privacy_training": "blocked_on_facts",
          "tb_screening": "blocked_on_facts",
          "bls_certification": "blocked_on_facts",
          "competency_checklist": "blocked_on_facts"
        },
        "missing_facts": [
          "engagement/start_date"
        ]
      },
      "steps": [
        {
          "name": "supply-start-date",
          "set_facts": {
            "engagement/start_date": "2026-12-07"
          },
          "expect": {
            "required": [
              "nursing_license",
              "exclusion_list_check",
              "hepatitis_b_vaccination",
              "bloodborne_pathogens_training",
              "respirator_fit_test",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "competency_checklist"
            ],
            "states": {
              "nursing_license": "available",
              "exclusion_list_check": "available",
              "hepatitis_b_vaccination": "available",
              "bloodborne_pathogens_training": "available",
              "respirator_fit_test": "available",
              "hipaa_privacy_training": "available",
              "tb_screening": "available",
              "bls_certification": "available",
              "competency_checklist": "available"
            },
            "missing_facts": []
          }
        }
      ]
    },
    {
      "name": "due-dates-and-overdue-progression",
      "description": "Verifies all four due-date schedules: before start (-1 day), at initial assignment (day 0), within 10 working days (business_days: 10), and within 30 calendar days.",
      "policy_set": "nursing",
      "as_of": "2026-12-06",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "rn",
        "role/patient_facing": true,
        "role/exposed_to_blood": true,
        "role/uses_respirator": true
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "states": {
          "nursing_license": "available",
          "exclusion_list_check": "available",
          "hepatitis_b_vaccination": "available",
          "bloodborne_pathogens_training": "available",
          "respirator_fit_test": "available",
          "hipaa_privacy_training": "available",
          "tb_screening": "available",
          "bls_certification": "available",
          "competency_checklist": "available"
        },
        "wake_at": "2026-12-07",
        "missing_facts": []
      },
      "steps": [
        {
          "name": "start-date-marks-before-start-items-overdue",
          "as_of": "2026-12-07",
          "expect": {
            "states": {
              "nursing_license": "overdue",
              "exclusion_list_check": "overdue",
              "respirator_fit_test": "overdue",
              "tb_screening": "overdue",
              "bls_certification": "overdue",
              "competency_checklist": "overdue",
              "bloodborne_pathogens_training": "available",
              "hepatitis_b_vaccination": "available",
              "hipaa_privacy_training": "available"
            },
            "missing_facts": []
          }
        },
        {
          "name": "day-after-start-marks-bloodborne-training-overdue",
          "as_of": "2026-12-08",
          "expect": {
            "states": {
              "bloodborne_pathogens_training": "overdue",
              "hepatitis_b_vaccination": "available",
              "hipaa_privacy_training": "available"
            },
            "missing_facts": []
          }
        },
        {
          "name": "after-10-business-days-marks-hep-b-overdue",
          "as_of": "2026-12-22",
          "expect": {
            "states": {
              "hepatitis_b_vaccination": "overdue",
              "hipaa_privacy_training": "available"
            },
            "missing_facts": []
          }
        },
        {
          "name": "after-30-days-marks-hipaa-overdue",
          "as_of": "2027-01-07",
          "expect": {
            "states": {
              "hipaa_privacy_training": "overdue"
            },
            "missing_facts": []
          }
        }
      ]
    },
    {
      "name": "license-and-bls-expires-on-renewal-and-expired",
      "description": "Completed nursing license and BLS certification open renewal items 30 days before nursing/license_expires_on and nursing/bls_expires_on and transition to expired once those dates are reached.",
      "policy_set": "nursing",
      "as_of": "2026-12-05",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "rn",
        "nursing/specialty": "emergency",
        "role/patient_facing": true,
        "role/exposed_to_blood": false,
        "role/uses_respirator": false,
        "nursing/license_status": "active",
        "nursing/license_expires_on": "2027-03-15",
        "nursing/bls_status": "active",
        "nursing/bls_expires_on": "2027-04-20"
      },
      "progress": {
        "nursing_license": {
          "status": "completed",
          "document": "doc_rn_lic_01",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "bls_certification": {
          "status": "completed",
          "document": "doc_rn_bls_01",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "tb_screening": {
          "status": "completed",
          "document": "doc_rn_tb_01",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "hipaa_privacy_training": {
          "status": "completed",
          "document": "doc_rn_hipaa_01",
          "roles": {
            "subject": "completed"
          }
        }
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "not_required": [
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "nursing_license:renewal",
          "bls_certification:renewal"
        ],
        "states": {
          "nursing_license": "complete",
          "bls_certification": "complete",
          "tb_screening": "complete",
          "hipaa_privacy_training": "complete"
        },
        "missing_facts": []
      },
      "steps": [
        {
          "name": "enter-license-30-day-renewal-window",
          "as_of": "2027-02-15",
          "expect": {
            "required": [
              "nursing_license",
              "nursing_license:renewal",
              "exclusion_list_check",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "competency_checklist"
            ],
            "not_required": [
              "bls_certification:renewal"
            ],
            "states": {
              "nursing_license": "complete",
              "nursing_license:renewal": "available",
              "bls_certification": "complete"
            },
            "missing_facts": []
          }
        },
        {
          "name": "advance-past-license-expiry",
          "as_of": "2027-03-16",
          "expect": {
            "not_required": [
              "nursing_license:renewal",
              "bls_certification:renewal"
            ],
            "states": {
              "nursing_license": "expired",
              "bls_certification": "complete"
            },
            "missing_facts": []
          }
        },
        {
          "name": "enter-bls-30-day-renewal-window",
          "as_of": "2027-03-25",
          "expect": {
            "required": [
              "nursing_license",
              "exclusion_list_check",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "bls_certification:renewal",
              "competency_checklist"
            ],
            "states": {
              "nursing_license": "expired",
              "bls_certification": "complete",
              "bls_certification:renewal": "available"
            },
            "missing_facts": []
          }
        },
        {
          "name": "advance-past-bls-expiry",
          "as_of": "2027-04-21",
          "expect": {
            "not_required": [
              "nursing_license:renewal",
              "bls_certification:renewal"
            ],
            "states": {
              "nursing_license": "expired",
              "bls_certification": "expired"
            },
            "missing_facts": []
          }
        }
      ]
    },
    {
      "name": "monthly-exclusion-and-annual-renewals-and-expiry",
      "description": "Completed monthly exclusion check and annual bloodborne pathogens, respirator fit test, and competency checklist open renewal items within their renewal windows and transition to expired past their periods.",
      "policy_set": "nursing",
      "as_of": "2026-12-05",
      "facts": {
        "engagement/start_date": "2026-12-07",
        "engagement/reviewer": "usr_cred_01",
        "nursing/role": "rn",
        "nursing/specialty": "critical_care",
        "role/patient_facing": true,
        "role/exposed_to_blood": true,
        "role/uses_respirator": true,
        "nursing/license_status": "active",
        "nursing/license_expires_on": "2028-12-31",
        "nursing/bls_status": "active",
        "nursing/bls_expires_on": "2028-12-31"
      },
      "evidence": [
        {
          "id": "chk_excl_01",
          "template": "exclusion-screening",
          "template_version": "2026.1.0",
          "status": "completed",
          "completed_at": "2026-12-05"
        },
        {
          "id": "doc_bbp_01",
          "template": "nursing_bloodborne_pathogens_training",
          "template_version": "2026.1.0",
          "status": "completed",
          "completed_at": "2026-12-05"
        },
        {
          "id": "doc_fit_01",
          "template": "nursing_respirator_fit_test",
          "template_version": "2026.1.0",
          "status": "completed",
          "completed_at": "2026-12-05"
        },
        {
          "id": "doc_comp_01",
          "template": "nursing_competency_checklist",
          "template_version": "2026.1.0",
          "status": "completed",
          "completed_at": "2026-12-05"
        }
      ],
      "progress": {
        "nursing_license": {
          "status": "completed",
          "document": "doc_lic_02",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "exclusion_list_check": {
          "status": "completed",
          "document": "chk_excl_01",
          "roles": {
            "provider": "completed"
          }
        },
        "hepatitis_b_vaccination": {
          "status": "completed",
          "document": "doc_hepb_01",
          "roles": {
            "subject": "completed"
          }
        },
        "bloodborne_pathogens_training": {
          "status": "completed",
          "document": "doc_bbp_01",
          "roles": {
            "subject": "completed"
          }
        },
        "respirator_fit_test": {
          "status": "completed",
          "document": "doc_fit_01",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "hipaa_privacy_training": {
          "status": "completed",
          "document": "doc_hipaa_02",
          "roles": {
            "subject": "completed"
          }
        },
        "tb_screening": {
          "status": "completed",
          "document": "doc_tb_02",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "bls_certification": {
          "status": "completed",
          "document": "doc_bls_02",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        },
        "competency_checklist": {
          "status": "completed",
          "document": "doc_comp_01",
          "roles": {
            "subject": "completed",
            "reviewer": "completed"
          }
        }
      },
      "expect": {
        "required": [
          "nursing_license",
          "exclusion_list_check",
          "hepatitis_b_vaccination",
          "bloodborne_pathogens_training",
          "respirator_fit_test",
          "hipaa_privacy_training",
          "tb_screening",
          "bls_certification",
          "competency_checklist"
        ],
        "not_required": [
          "exclusion_list_check:renewal",
          "bloodborne_pathogens_training:renewal",
          "respirator_fit_test:renewal",
          "competency_checklist:renewal"
        ],
        "states": {
          "exclusion_list_check": "complete",
          "bloodborne_pathogens_training": "complete",
          "respirator_fit_test": "complete",
          "competency_checklist": "complete"
        },
        "wake_at": "2026-12-29",
        "missing_facts": []
      },
      "steps": [
        {
          "name": "enter-monthly-exclusion-7-day-renewal-window",
          "as_of": "2026-12-30",
          "expect": {
            "required": [
              "nursing_license",
              "exclusion_list_check",
              "exclusion_list_check:renewal",
              "hepatitis_b_vaccination",
              "bloodborne_pathogens_training",
              "respirator_fit_test",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "competency_checklist"
            ],
            "not_required": [
              "bloodborne_pathogens_training:renewal",
              "respirator_fit_test:renewal",
              "competency_checklist:renewal"
            ],
            "states": {
              "exclusion_list_check": "complete",
              "exclusion_list_check:renewal": "available",
              "bloodborne_pathogens_training": "complete",
              "respirator_fit_test": "complete",
              "competency_checklist": "complete"
            },
            "wake_at": "2027-01-05",
            "missing_facts": []
          }
        },
        {
          "name": "advance-past-monthly-exclusion-expiry",
          "as_of": "2027-01-06",
          "expect": {
            "not_required": [
              "exclusion_list_check:renewal",
              "bloodborne_pathogens_training:renewal",
              "respirator_fit_test:renewal",
              "competency_checklist:renewal"
            ],
            "states": {
              "exclusion_list_check": "expired",
              "bloodborne_pathogens_training": "complete",
              "respirator_fit_test": "complete",
              "competency_checklist": "complete"
            },
            "wake_at": "2027-11-05",
            "missing_facts": []
          }
        },
        {
          "name": "enter-annual-30-day-renewal-window",
          "as_of": "2027-11-10",
          "expect": {
            "required": [
              "nursing_license",
              "exclusion_list_check",
              "hepatitis_b_vaccination",
              "bloodborne_pathogens_training",
              "bloodborne_pathogens_training:renewal",
              "respirator_fit_test",
              "respirator_fit_test:renewal",
              "hipaa_privacy_training",
              "tb_screening",
              "bls_certification",
              "competency_checklist",
              "competency_checklist:renewal"
            ],
            "states": {
              "exclusion_list_check": "expired",
              "bloodborne_pathogens_training": "complete",
              "bloodborne_pathogens_training:renewal": "available",
              "respirator_fit_test": "complete",
              "respirator_fit_test:renewal": "available",
              "competency_checklist": "complete",
              "competency_checklist:renewal": "available"
            },
            "wake_at": "2027-12-05",
            "missing_facts": []
          }
        },
        {
          "name": "advance-past-annual-expiry",
          "as_of": "2027-12-06",
          "expect": {
            "not_required": [
              "exclusion_list_check:renewal",
              "bloodborne_pathogens_training:renewal",
              "respirator_fit_test:renewal",
              "competency_checklist:renewal"
            ],
            "states": {
              "exclusion_list_check": "expired",
              "bloodborne_pathogens_training": "expired",
              "respirator_fit_test": "expired",
              "competency_checklist": "expired",
              "hepatitis_b_vaccination": "complete",
              "hipaa_privacy_training": "complete",
              "tb_screening": "complete"
            },
            "missing_facts": []
          }
        }
      ]
    }
  ]
}

Forma Lisp

Show Forma Lisp source nursing.forma
(pack nursing
  :format 1
  :version "2026.12.0"
  :kind "library"
  :description "Nursing and clinical staffing vertical library pack (RFC 0004): clinical role, specialty, exposure, and credential concepts plus nine clinical compliance requirements covering active nursing licensure (confirm), monthly federal healthcare exclusion screening, OSHA Hepatitis B vaccination and bloodborne pathogens training, OSHA respirator fit testing, HIPAA privacy training, CDC tuberculosis screening, Basic Life Support certification (confirm), and annual clinical competency validation (confirm).")

;; ── Pack Dependencies ──────────────────────────────────────────────────────

(require-pack credentials-core :range "^2026.12")
(require-pack screening-core :range "^2026.12")
(require-pack us-federal :range "^2026.12")

;; ── Concepts ───────────────────────────────────────────────────────────────

(concept "nursing/role"
  :type "choice"
  :options ["rn" "lpn" "cna" "allied"]
  :description "Clinical nursing or allied health role of the principal (RN, LPN, CNA, or allied health)")

(concept "nursing/specialty"
  :type "string"
  :description "Clinical specialty or practice unit for the engagement (for example critical_care, emergency, medical_surgical, perioperative)")

(concept "role/patient_facing"
  :type "boolean"
  :description "Whether the role involves direct clinical care or access to patient data and protected health information")

(concept "role/exposed_to_blood"
  :type "boolean"
  :description "Whether the role carries reasonably anticipated occupational exposure to blood or other potentially infectious materials (29 CFR 1910.1030)")

(concept "role/uses_respirator"
  :type "boolean"
  :description "Whether the role requires use of a tight-fitting respirator (29 CFR 1910.134)")

(concept "nursing/license_status"
  :type "choice"
  :options ["active" "pending" "expired" "suspended" "revoked"]
  :description "Current standing of the principal's nursing license for the work state (single-state or multistate compact)")

(concept "nursing/license_expires_on"
  :type "date"
  :description "Expiration date of the principal's active nursing license (YYYY-MM-DD)")

(concept "nursing/bls_status"
  :type "choice"
  :options ["active" "pending" "expired"]
  :description "Current standing of the principal's Basic Life Support (BLS) certification card")

(concept "nursing/bls_expires_on"
  :type "date"
  :description "Expiration date printed on the principal's Basic Life Support (BLS) certification card (YYYY-MM-DD)")

;; ── Document Templates ─────────────────────────────────────────────────────

(template nursing_license_verification
  :version "2026.1.0"
  :title "Active Nursing License Verification"
  :roles
    [{:name "subject" :kind "person" :label "Clinician"}
     {:name "reviewer" :kind "user" :label "Credentialing Reviewer" :after ["subject"]}]
  :sections
    [{:id "license_submission"
       :role "subject"
       :title "Nursing License Details"
       :fields
        [{:id "license_type"
           :type "choice"
           :label "License or Certification Type"
           :options ["rn" "lpn" "cna"]
           :required true}
         {:id "license_state"
           :type "text"
           :label "Issuing Jurisdiction"
           :required true}
         {:id "license_number"
           :type "text"
           :label "License or Registry Number"
           :required true
           :sensitive true}
         {:id "is_multistate_compact"
           :type "boolean"
           :label "Multistate Compact Privilege Applies"
           :required true}
         {:id "expires_on"
           :type "date"
           :label "License Expiration Date"
           :required true}]}
     {:id "license_verification"
       :role "reviewer"
       :title "Primary Source Licensure Verification"
       :readable ["license_submission"]
       :fields
        [{:id "verification_source"
           :type "choice"
           :label "Verification Source"
           :options ["issuing_board" "national_database" "document_review"]
           :required true}
         {:id "verified_on" :type "date" :label "Verification Date" :required true}
         {:id "license_status"
           :type "choice"
           :label "Verified Standing"
           :options ["active" "pending" "expired" "suspended" "revoked"]
           :required true}
         {:id "disciplinary_action"
           :type "boolean"
           :label "Open or Historical Disciplinary Action Found"
           :required true}]
       :signature
        {:id "reviewer_signature"
         :attestation "I attest that I verified the clinician's nursing license standing for the work state against the recorded verification source."
         :covers ["license_submission" "license_verification"]}}])

(template nursing_hep_b_vaccination
  :version "2026.1.0"
  :title "Hepatitis B Vaccination Offer or Written Declination (29 CFR 1910.1030(f)(2))"
  :roles [{:name "subject" :kind "person" :label "Clinician"}]
  :sections
    [{:id "hepatitis_b_status"
       :role "subject"
       :title "Hepatitis B Vaccination Election"
       :fields
        [{:id "election"
           :type "choice"
           :label "Vaccination Status or Election"
           :options ["vaccinated" "in_progress" "declined_in_writing" "immunity_confirmed"]
           :required true}
         {:id "record_date"
           :type "date"
           :label "Date of Vaccination Series, Titer, or Declination"
           :required true}
         {:id "declination_statement_acknowledged"
           :type "boolean"
           :label "If declining, I acknowledge the mandatory OSHA Hepatitis B declination statement"
           :required false}]
       :signature
        {:id "subject_signature"
         :attestation "I confirm that the Hepatitis B vaccination series has been offered to me at no cost or that I have documented prior immunity or signed a written declination pursuant to 29 CFR 1910.1030(f)(2)."
         :covers ["hepatitis_b_status"]}}])

(template nursing_bloodborne_pathogens_training
  :version "2026.1.0"
  :title "Bloodborne Pathogens Training Record (29 CFR 1910.1030(g)(2))"
  :roles [{:name "subject" :kind "person" :label "Clinician"}]
  :sections
    [{:id "training_record"
       :role "subject"
       :title "Bloodborne Pathogens Training Completion"
       :fields
        [{:id "completed_date"
           :type "date"
           :label "Training Completion Date"
           :required true}
         {:id "delivery_format"
           :type "choice"
           :label "Training Delivery Format"
           :options ["interactive_online" "live_in_person" "live_virtual"]
           :required true}
         {:id "program_title"
           :type "text"
           :label "Training Program Title"
           :required true}]
       :signature
        {:id "subject_signature"
         :attestation "I attest that I have completed bloodborne pathogens training covering exposure control, universal precautions, and post-exposure procedures pursuant to 29 CFR 1910.1030(g)(2)."
         :covers ["training_record"]}}])

(template nursing_respirator_fit_test
  :version "2026.1.0"
  :title "Respirator Fit Test Record (29 CFR 1910.134(f)(2))"
  :roles
    [{:name "subject" :kind "person" :label "Clinician"}
     {:name "reviewer"
       :kind "user"
       :label "Occupational Health Reviewer"
       :after ["subject"]}]
  :sections
    [{:id "respirator_clearance"
       :role "subject"
       :title "Respirator Medical Clearance"
       :fields
        [{:id "medical_evaluation_cleared"
           :type "boolean"
           :label "Medical evaluation completed and cleared for respirator use"
           :required true}
         {:id "respirator_type"
           :type "choice"
           :label "Respirator Class"
           :options ["particulate_respirator" "elastomeric_half_mask" "powered_air_purifying"]
           :required true}]}
     {:id "fit_test_result"
       :role "reviewer"
       :title "Fit Test Verification"
       :readable ["respirator_clearance"]
       :fields
        [{:id "fit_test_date" :type "date" :label "Fit Test Date" :required true}
         {:id "fit_test_method"
           :type "choice"
           :label "Fit Test Method"
           :options ["qualitative" "quantitative"]
           :required true}
         {:id "model_and_size"
           :type "text"
           :label "Approved Respirator Model and Size"
           :required true}
         {:id "fit_test_outcome"
           :type "choice"
           :label "Fit Test Outcome"
           :options ["passed" "failed"]
           :required true}]
       :signature
        {:id "reviewer_signature"
         :attestation "I confirm that the respirator fit test was conducted and documented in accordance with 29 CFR 1910.134(f)(2)."
         :covers ["respirator_clearance" "fit_test_result"]}}])

(template nursing_hipaa_privacy_training
  :version "2026.1.0"
  :title "HIPAA Privacy Training Attestation (45 CFR 164.530(b))"
  :roles [{:name "subject" :kind "person" :label "Clinician"}]
  :sections
    [{:id "privacy_training"
       :role "subject"
       :title "HIPAA Privacy and Confidentiality Training"
       :fields
        [{:id "completed_date"
           :type "date"
           :label "Training Completion Date"
           :required true}
         {:id "policy_acknowledged"
           :type "boolean"
           :label "I have completed HIPAA privacy training and agree to safeguard protected health information"
           :required true}]
       :signature
        {:id "subject_signature"
         :attestation "I attest that I have completed HIPAA privacy policy training pursuant to 45 CFR 164.530(b)."
         :covers ["privacy_training"]}}])

(template nursing_tb_screening
  :version "2026.1.0"
  :title "Tuberculosis Screening and Clearance"
  :roles
    [{:name "subject" :kind "person" :label "Clinician"}
     {:name "reviewer"
       :kind "user"
       :label "Occupational Health Reviewer"
       :after ["subject"]}]
  :sections
    [{:id "tb_submission"
       :role "subject"
       :title "TB Screening Record"
       :fields
        [{:id "screening_date" :type "date" :label "Screening Date" :required true}
         {:id "screening_method"
           :type "choice"
           :label "Screening Method"
           :options
            ["igra_blood_test"
             "tst_skin_test"
             "chest_radiograph"
             "symptom_questionnaire"]
           :required true}
         {:id "symptom_screen_clear"
           :type "boolean"
           :label "Individual TB risk assessment and symptom evaluation completed with no active symptoms"
           :required true}]
       :signature
        {:id "subject_signature"
         :attestation "I attest that the tuberculosis screening information provided above is accurate."
         :covers ["tb_submission"]}}
     {:id "tb_clearance_review"
       :role "reviewer"
       :title "TB Clearance Review"
       :readable ["tb_submission"]
       :fields
        [{:id "clearance_status"
           :type "choice"
           :label "Clearance Status"
           :options ["clear" "follow_up_required"]
           :required true}
         {:id "reviewed_on" :type "date" :label "Review Date" :required true}]
       :signature
        {:id "reviewer_signature"
         :attestation "I confirm that baseline tuberculosis screening has been reviewed against CDC 2019 health care personnel TB screening guidance."
         :covers ["tb_submission" "tb_clearance_review"]}}])

(template nursing_bls_certification
  :version "2026.1.0"
  :title "Basic Life Support (BLS) Certification Verification"
  :roles
    [{:name "subject" :kind "person" :label "Clinician"}
     {:name "reviewer" :kind "user" :label "Credentialing Reviewer" :after ["subject"]}]
  :sections
    [{:id "bls_submission"
       :role "subject"
       :title "BLS Card Submission"
       :fields
        [{:id "certification_id"
           :type "text"
           :label "BLS Certification Card ID"
           :required true}
         {:id "issued_date" :type "date" :label "Card Issue Date" :required true}
         {:id "expires_on" :type "date" :label "Card Expiration Date" :required true}]}
     {:id "bls_verification"
       :role "reviewer"
       :title "BLS Card Verification"
       :readable ["bls_submission"]
       :fields
        [{:id "bls_status"
           :type "choice"
           :label "Verified Card Standing"
           :options ["active" "pending" "expired"]
           :required true}
         {:id "verified_on" :type "date" :label "Verification Date" :required true}]
       :signature
        {:id "reviewer_signature"
         :attestation "I confirm that the clinician's Basic Life Support certification card has been verified as current."
         :covers ["bls_submission" "bls_verification"]}}])

(template nursing_competency_checklist
  :version "2026.1.0"
  :title "Clinical Competency and Skills Checklist"
  :roles
    [{:name "subject" :kind "person" :label "Clinician"}
     {:name "reviewer" :kind "user" :label "Clinical Reviewer" :after ["subject"]}]
  :sections
    [{:id "skills_self_assessment"
       :role "subject"
       :title "Specialty Skills Self-Assessment"
       :fields
        [{:id "specialty_area"
           :type "text"
           :label "Clinical Specialty Area"
           :required true}
         {:id "assessment_date"
           :type "date"
           :label "Self-Assessment Date"
           :required true}
         {:id "self_assessment_completed"
           :type "boolean"
           :label "I have completed the specialty competency and skills checklist accurately"
           :required true}]
       :signature
        {:id "subject_signature"
         :attestation "I attest that my clinical skills self-assessment accurately reflects my current competence."
         :covers ["skills_self_assessment"]}}
     {:id "competency_validation"
       :role "reviewer"
       :title "Clinical Competency Validation"
       :readable ["skills_self_assessment"]
       :fields
        [{:id "validation_date" :type "date" :label "Validation Date" :required true}
         {:id "competency_status"
           :type "choice"
           :label "Validation Determination"
           :options ["competent" "remediation_required"]
           :required true}]
       :signature
        {:id "reviewer_signature"
         :attestation "I confirm that the clinician's specialty competency and skills checklist has been reviewed and validated."
         :covers ["skills_self_assessment" "competency_validation"]}}])

;; ── Compliance Policy Sets ─────────────────────────────────────────────────

(policy-set nursing
  :version "2026.12.0"
  :facts
    {"engagement/start_date" {:type "date"}
     "engagement/reviewer" {:type "string"}
     "nursing/role" {:type "choice" :options ["rn" "lpn" "cna" "allied"]}
     "nursing/specialty" {:type "string"}
     "role/patient_facing" {:type "boolean"}
     "role/exposed_to_blood" {:type "boolean"}
     "role/uses_respirator" {:type "boolean"}
     "nursing/license_status" {:type "choice" :options ["active" "pending" "expired" "suspended" "revoked"]}
     "nursing/license_expires_on" {:type "date"}
     "nursing/bls_status" {:type "choice" :options ["active" "pending" "expired"]}
     "nursing/bls_expires_on" {:type "date"}}
  :stages
    [{:id "licensure" :title "Licensure and Certifications"}
     {:id "clinical_screening" :title "Clinical Exclusion Screening"}
     {:id "occupational_health" :title "Occupational Health and Safety"}
     {:id "clinical_training" :title "Clinical Training and Competency"}]
  :requirements
    {:nursing_license
      {:title "Active Nursing License for Work State (confirm)"
       :kind "document"
       :template "nursing_license_verification"
       :stage "licensure"
       :parties {:subject "subject" :reviewer "engagement/reviewer"}
       :due
        {:subject {:relative_to "engagement/start_date" :days -1}
         :reviewer {:relative_to "engagement/start_date" :days -1}}
       :expires_on "nursing/license_expires_on"
       :renew_within {:days 30}
       :on_unknown "wait"
       :authority "statute"
       :cites
        ["State nurse practice act (confirm)"
         "Nurse Licensure Compact for multistate licenses (confirm)"]}
     :exclusion_list_check
      {:title "Exclusion List Check"
       :kind "check"
       :provider "exclusion-screening"
       :stage "clinical_screening"
       :parties {:provider "system:exclusion-screening"}
       :due {:provider {:relative_to "engagement/start_date" :days -1}}
       :expires {:months 1}
       :renew_within {:days 7}
       :on_unknown "wait"
       :authority "regulation"
       :cites ["42 U.S.C. 1320a-7" "42 CFR 1001.1901"]}
     :hepatitis_b_vaccination
      {:title "Hepatitis B Vaccination Offer or Written Declination"
       :kind "document"
       :template "nursing_hep_b_vaccination"
       :stage "occupational_health"
       :parties {:subject "subject"}
       :due {:subject {:relative_to "engagement/start_date" :business_days 10}}
       :reuse {:outcome "satisfies"}
       :on_unknown "wait"
       :authority "regulation"
       :cites ["29 CFR 1910.1030(f)(2)"]}
     :bloodborne_pathogens_training
      {:title "Bloodborne Pathogens Training"
       :kind "document"
       :template "nursing_bloodborne_pathogens_training"
       :stage "clinical_training"
       :parties {:subject "subject"}
       :due {:subject {:relative_to "engagement/start_date" :days 0}}
       :expires {:years 1}
       :renew_within {:days 30}
       :reuse {:max_age_days 365 :outcome "satisfies"}
       :on_unknown "wait"
       :authority "regulation"
       :cites ["29 CFR 1910.1030(g)(2)"]}
     :respirator_fit_test
      {:title "Respirator Fit Test"
       :kind "document"
       :template "nursing_respirator_fit_test"
       :stage "occupational_health"
       :parties {:subject "subject" :reviewer "engagement/reviewer"}
       :due
        {:subject {:relative_to "engagement/start_date" :days -1}
         :reviewer {:relative_to "engagement/start_date" :days -1}}
       :expires {:years 1}
       :renew_within {:days 30}
       :on_unknown "wait"
       :authority "regulation"
       :cites ["29 CFR 1910.134(f)(2)"]}
     :hipaa_privacy_training
      {:title "HIPAA Privacy Training"
       :kind "document"
       :template "nursing_hipaa_privacy_training"
       :stage "clinical_training"
       :parties {:subject "subject"}
       :due {:subject {:relative_to "engagement/start_date" :days 30}}
       :reuse {:max_age_days 365 :outcome "satisfies"}
       :on_unknown "wait"
       :authority "regulation"
       :cites ["45 CFR 164.530(b)"]}
     :tb_screening
      {:title "Tuberculosis Screening"
       :kind "document"
       :template "nursing_tb_screening"
       :stage "occupational_health"
       :parties {:subject "subject" :reviewer "engagement/reviewer"}
       :due
        {:subject {:relative_to "engagement/start_date" :days -1}
         :reviewer {:relative_to "engagement/start_date" :days -1}}
       :reuse {:max_age_days 365 :outcome "satisfies"}
       :on_unknown "wait"
       :authority "guidance"
       :cites ["CDC health care personnel TB screening guidance, 2019"]}
     :bls_certification
      {:title "Basic Life Support Certification (confirm)"
       :kind "document"
       :template "nursing_bls_certification"
       :stage "licensure"
       :parties {:subject "subject" :reviewer "engagement/reviewer"}
       :due
        {:subject {:relative_to "engagement/start_date" :days -1}
         :reviewer {:relative_to "engagement/start_date" :days -1}}
       :expires_on "nursing/bls_expires_on"
       :renew_within {:days 30}
       :reuse {:max_age_days 730 :outcome "satisfies"}
       :on_unknown "wait"
       :authority "accreditation"
       :cites ["Facility and accreditation requirements (confirm)"]}
     :competency_checklist
      {:title "Competency and Skills Checklist (confirm)"
       :kind "document"
       :template "nursing_competency_checklist"
       :stage "clinical_training"
       :parties {:subject "subject" :reviewer "engagement/reviewer"}
       :due
        {:subject {:relative_to "engagement/start_date" :days -1}
         :reviewer {:relative_to "engagement/start_date" :days -1}}
       :expires {:years 1}
       :renew_within {:days 30}
       :on_unknown "wait"
       :authority "accreditation"
       :cites ["Accreditation standards for staff competence (confirm)"]}}
  :policies
    [{:id "nursing-active-license"
       :title "Active nursing license for the work state before start for RN, LPN, and CNA roles (confirm)"
       :when {:fact "nursing/role" :operator "in" :value ["rn" "lpn" "cna"]}
       :require ["nursing_license"]
       :optional false
       :cites
        ["State nurse practice act (confirm)"
         "Nurse Licensure Compact for multistate licenses (confirm)"]}
     {:id "nursing-exclusion-list-check"
       :title "Monthly federal healthcare exclusion list check before start for clinical roles"
       :when
        {:all
          [{:fact "nursing/role" :operator "in" :value ["rn" "lpn" "cna" "allied"]}
           {:fact "role/patient_facing" :operator "equal" :value true}]}
       :require ["exclusion_list_check"]
       :optional false
       :cites ["42 U.S.C. 1320a-7" "42 CFR 1001.1901"]}
     {:id "nursing-hepatitis-b-vaccination"
       :title "Hepatitis B vaccination offered or declined in writing within 10 working days for roles exposed to blood"
       :when {:fact "role/exposed_to_blood" :operator "equal" :value true}
       :require ["hepatitis_b_vaccination"]
       :optional false
       :cites ["29 CFR 1910.1030(f)(2)"]}
     {:id "nursing-bloodborne-pathogens-training"
       :title "Bloodborne pathogens training at initial assignment and annually for roles exposed to blood"
       :when {:fact "role/exposed_to_blood" :operator "equal" :value true}
       :require ["bloodborne_pathogens_training"]
       :optional false
       :cites ["29 CFR 1910.1030(g)(2)"]}
     {:id "nursing-respirator-fit-test"
       :title "Respirator fit test before first use and annually for roles using respirators"
       :when {:fact "role/uses_respirator" :operator "equal" :value true}
       :require ["respirator_fit_test"]
       :optional false
       :cites ["29 CFR 1910.134(f)(2)"]}
     {:id "nursing-hipaa-privacy-training"
       :title "HIPAA privacy training within a reasonable time of joining for roles with patient data access"
       :when {:fact "role/patient_facing" :operator "equal" :value true}
       :require ["hipaa_privacy_training"]
       :optional false
       :cites ["45 CFR 164.530(b)"]}
     {:id "nursing-tb-screening"
       :title "Tuberculosis screening before start for clinical roles"
       :when
        {:all
          [{:fact "nursing/role" :operator "in" :value ["rn" "lpn" "cna" "allied"]}
           {:fact "role/patient_facing" :operator "equal" :value true}]}
       :require ["tb_screening"]
       :optional false
       :cites ["CDC health care personnel TB screening guidance, 2019"]}
     {:id "nursing-bls-certification"
       :title "Active Basic Life Support certification before start for RN and LPN roles (confirm)"
       :when {:fact "nursing/role" :operator "in" :value ["rn" "lpn"]}
       :require ["bls_certification"]
       :optional false
       :cites ["Facility and accreditation requirements (confirm)"]}
     {:id "nursing-competency-checklist"
       :title "Annual competency and skills checklist before start for clinical roles (confirm)"
       :when
        {:all
          [{:fact "nursing/role" :operator "in" :value ["rn" "lpn" "cna" "allied"]}
           {:fact "role/patient_facing" :operator "equal" :value true}]}
       :require ["competency_checklist"]
       :optional false
       :cites ["Accreditation standards for staff competence (confirm)"]}]
  :calendar
    {:holidays
      ["2026-01-01"
       "2026-01-19"
       "2026-02-16"
       "2026-05-25"
       "2026-06-19"
       "2026-07-03"
       "2026-07-04"
       "2026-09-07"
       "2026-10-12"
       "2026-11-11"
       "2026-11-26"
       "2026-12-25"
       "2027-01-01"]})

;; ── Declarative Scenarios ──────────────────────────────────────────────────

(scenario rn-full-clinical-applies
  :description "Patient-facing RN with blood exposure and respirator use triggers all nine nursing compliance requirements."
  :policy-set "nursing"
  :as-of "2026-12-01"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "rn"
     "nursing/specialty" "critical_care"
     "role/patient_facing" true
     "role/exposed_to_blood" true
     "role/uses_respirator" true
     "nursing/license_status" "active"
     "nursing/license_expires_on" "2027-09-30"
     "nursing/bls_status" "active"
     "nursing/bls_expires_on" "2027-08-31"}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :not_required []
     :states
      {:nursing_license "available"
       :exclusion_list_check "available"
       :hepatitis_b_vaccination "available"
       :bloodborne_pathogens_training "available"
       :respirator_fit_test "available"
       :hipaa_privacy_training "available"
       :tb_screening "available"
       :bls_certification "available"
       :competency_checklist "available"}
     :missing_facts []})

(scenario cna-no-bls-no-respirator
  :description "Patient-facing CNA exposed to blood without respirator use requires nursing license and clinical/bloodborne items, but not BLS certification or respirator fit test."
  :policy-set "nursing"
  :as-of "2026-12-01"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "cna"
     "nursing/specialty" "medical_surgical"
     "role/patient_facing" true
     "role/exposed_to_blood" true
     "role/uses_respirator" false
     "nursing/license_status" "active"
     "nursing/license_expires_on" "2027-10-15"}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "hipaa_privacy_training"
       "tb_screening"
       "competency_checklist"]
     :not_required ["bls_certification" "respirator_fit_test"]
     :states
      {:nursing_license "available"
       :exclusion_list_check "available"
       :hepatitis_b_vaccination "available"
       :bloodborne_pathogens_training "available"
       :hipaa_privacy_training "available"
       :tb_screening "available"
       :competency_checklist "available"}
     :missing_facts []})

(scenario allied-non-patient-facing-exempt
  :description "Non-patient-facing allied role without blood exposure or respirator use does not trigger any of the nine nursing requirements."
  :policy-set "nursing"
  :as-of "2026-12-01"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "allied"
     "nursing/specialty" "health_informatics"
     "role/patient_facing" false
     "role/exposed_to_blood" false
     "role/uses_respirator" false}
  :expect
    {:required []
     :not_required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :missing_facts []})

(scenario missing-role-and-exposure-tentative
  :description "When nursing/role and role exposure flags are unknown, all nine requirements are tentative and blocked on missing facts; supplying LPN with patient_facing=true and no blood/respirator exposure resolves to the applicable subset."
  :policy-set "nursing"
  :as-of "2026-12-01"
  :facts {"engagement/start_date" "2026-12-07" "engagement/reviewer" "usr_cred_01"}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :not_required []
     :states
      {:nursing_license "blocked_on_facts"
       :exclusion_list_check "blocked_on_facts"
       :hepatitis_b_vaccination "blocked_on_facts"
       :bloodborne_pathogens_training "blocked_on_facts"
       :respirator_fit_test "blocked_on_facts"
       :hipaa_privacy_training "blocked_on_facts"
       :tb_screening "blocked_on_facts"
       :bls_certification "blocked_on_facts"
       :competency_checklist "blocked_on_facts"}
     :missing_facts
      ["nursing/role"
       "role/exposed_to_blood"
       "role/patient_facing"
       "role/uses_respirator"]}
  :steps
    [{:name "supply-lpn-facts-without-blood-or-respirator"
       :set_facts
        {"nursing/role" "lpn"
         "role/patient_facing" true
         "role/exposed_to_blood" false
         "role/uses_respirator" false}
       :expect
        {:required
          ["nursing_license"
           "exclusion_list_check"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "competency_checklist"]
         :not_required
          ["hepatitis_b_vaccination"
           "bloodborne_pathogens_training"
           "respirator_fit_test"]
         :states
          {:nursing_license "available"
           :exclusion_list_check "available"
           :hipaa_privacy_training "available"
           :tb_screening "available"
           :bls_certification "available"
           :competency_checklist "available"}
         :missing_facts []}}])

(scenario missing-start-date-blocks-due
  :description "When engagement/start_date is missing, all applicable nursing requirements wait on engagement/start_date until supplied."
  :policy-set "nursing"
  :as-of "2026-12-01"
  :facts
    {"engagement/reviewer" "usr_cred_01"
     "nursing/role" "rn"
     "role/patient_facing" true
     "role/exposed_to_blood" true
     "role/uses_respirator" true}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :not_required []
     :states
      {:nursing_license "blocked_on_facts"
       :exclusion_list_check "blocked_on_facts"
       :hepatitis_b_vaccination "blocked_on_facts"
       :bloodborne_pathogens_training "blocked_on_facts"
       :respirator_fit_test "blocked_on_facts"
       :hipaa_privacy_training "blocked_on_facts"
       :tb_screening "blocked_on_facts"
       :bls_certification "blocked_on_facts"
       :competency_checklist "blocked_on_facts"}
     :missing_facts ["engagement/start_date"]}
  :steps
    [{:name "supply-start-date"
       :set_facts {"engagement/start_date" "2026-12-07"}
       :expect
        {:required
          ["nursing_license"
           "exclusion_list_check"
           "hepatitis_b_vaccination"
           "bloodborne_pathogens_training"
           "respirator_fit_test"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "competency_checklist"]
         :states
          {:nursing_license "available"
           :exclusion_list_check "available"
           :hepatitis_b_vaccination "available"
           :bloodborne_pathogens_training "available"
           :respirator_fit_test "available"
           :hipaa_privacy_training "available"
           :tb_screening "available"
           :bls_certification "available"
           :competency_checklist "available"}
         :missing_facts []}}])

(scenario due-dates-and-overdue-progression
  :description "Verifies all four due-date schedules: before start (-1 day), at initial assignment (day 0), within 10 working days (business_days: 10), and within 30 calendar days."
  :policy-set "nursing"
  :as-of "2026-12-06"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "rn"
     "role/patient_facing" true
     "role/exposed_to_blood" true
     "role/uses_respirator" true}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :states
      {:nursing_license "available"
       :exclusion_list_check "available"
       :hepatitis_b_vaccination "available"
       :bloodborne_pathogens_training "available"
       :respirator_fit_test "available"
       :hipaa_privacy_training "available"
       :tb_screening "available"
       :bls_certification "available"
       :competency_checklist "available"}
     :wake_at "2026-12-07"
     :missing_facts []}
  :steps
    [{:name "start-date-marks-before-start-items-overdue"
       :as_of "2026-12-07"
       :expect
        {:states
          {:nursing_license "overdue"
           :exclusion_list_check "overdue"
           :respirator_fit_test "overdue"
           :tb_screening "overdue"
           :bls_certification "overdue"
           :competency_checklist "overdue"
           :bloodborne_pathogens_training "available"
           :hepatitis_b_vaccination "available"
           :hipaa_privacy_training "available"}
         :missing_facts []}}
     {:name "day-after-start-marks-bloodborne-training-overdue"
       :as_of "2026-12-08"
       :expect
        {:states
          {:bloodborne_pathogens_training "overdue"
           :hepatitis_b_vaccination "available"
           :hipaa_privacy_training "available"}
         :missing_facts []}}
     {:name "after-10-business-days-marks-hep-b-overdue"
       :as_of "2026-12-22"
       :expect
        {:states {:hepatitis_b_vaccination "overdue" :hipaa_privacy_training "available"}
         :missing_facts []}}
     {:name "after-30-days-marks-hipaa-overdue"
       :as_of "2027-01-07"
       :expect {:states {:hipaa_privacy_training "overdue"} :missing_facts []}}])

(scenario license-and-bls-expires-on-renewal-and-expired
  :description "Completed nursing license and BLS certification open renewal items 30 days before nursing/license_expires_on and nursing/bls_expires_on and transition to expired once those dates are reached."
  :policy-set "nursing"
  :as-of "2026-12-05"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "rn"
     "nursing/specialty" "emergency"
     "role/patient_facing" true
     "role/exposed_to_blood" false
     "role/uses_respirator" false
     "nursing/license_status" "active"
     "nursing/license_expires_on" "2027-03-15"
     "nursing/bls_status" "active"
     "nursing/bls_expires_on" "2027-04-20"}
  :progress
    {:nursing_license
      {:status "completed"
       :document "doc_rn_lic_01"
       :roles {:subject "completed" :reviewer "completed"}}
     :bls_certification
      {:status "completed"
       :document "doc_rn_bls_01"
       :roles {:subject "completed" :reviewer "completed"}}
     :tb_screening
      {:status "completed"
       :document "doc_rn_tb_01"
       :roles {:subject "completed" :reviewer "completed"}}
     :hipaa_privacy_training {:status "completed" :document "doc_rn_hipaa_01" :roles {:subject "completed"}}}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :not_required
      ["hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "nursing_license:renewal"
       "bls_certification:renewal"]
     :states
      {:nursing_license "complete"
       :bls_certification "complete"
       :tb_screening "complete"
       :hipaa_privacy_training "complete"}
     :missing_facts []}
  :steps
    [{:name "enter-license-30-day-renewal-window"
       :as_of "2027-02-15"
       :expect
        {:required
          ["nursing_license"
           "nursing_license:renewal"
           "exclusion_list_check"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "competency_checklist"]
         :not_required ["bls_certification:renewal"]
         :states
          {:nursing_license "complete"
           "nursing_license:renewal" "available"
           :bls_certification "complete"}
         :missing_facts []}}
     {:name "advance-past-license-expiry"
       :as_of "2027-03-16"
       :expect
        {:not_required ["nursing_license:renewal" "bls_certification:renewal"]
         :states {:nursing_license "expired" :bls_certification "complete"}
         :missing_facts []}}
     {:name "enter-bls-30-day-renewal-window"
       :as_of "2027-03-25"
       :expect
        {:required
          ["nursing_license"
           "exclusion_list_check"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "bls_certification:renewal"
           "competency_checklist"]
         :states
          {:nursing_license "expired"
           :bls_certification "complete"
           "bls_certification:renewal" "available"}
         :missing_facts []}}
     {:name "advance-past-bls-expiry"
       :as_of "2027-04-21"
       :expect
        {:not_required ["nursing_license:renewal" "bls_certification:renewal"]
         :states {:nursing_license "expired" :bls_certification "expired"}
         :missing_facts []}}])

(scenario monthly-exclusion-and-annual-renewals-and-expiry
  :description "Completed monthly exclusion check and annual bloodborne pathogens, respirator fit test, and competency checklist open renewal items within their renewal windows and transition to expired past their periods."
  :policy-set "nursing"
  :as-of "2026-12-05"
  :facts
    {"engagement/start_date" "2026-12-07"
     "engagement/reviewer" "usr_cred_01"
     "nursing/role" "rn"
     "nursing/specialty" "critical_care"
     "role/patient_facing" true
     "role/exposed_to_blood" true
     "role/uses_respirator" true
     "nursing/license_status" "active"
     "nursing/license_expires_on" "2028-12-31"
     "nursing/bls_status" "active"
     "nursing/bls_expires_on" "2028-12-31"}
  :evidence
    [{:id "chk_excl_01"
       :template "exclusion-screening"
       :template_version "2026.1.0"
       :status "completed"
       :completed_at "2026-12-05"}
     {:id "doc_bbp_01"
       :template "nursing_bloodborne_pathogens_training"
       :template_version "2026.1.0"
       :status "completed"
       :completed_at "2026-12-05"}
     {:id "doc_fit_01"
       :template "nursing_respirator_fit_test"
       :template_version "2026.1.0"
       :status "completed"
       :completed_at "2026-12-05"}
     {:id "doc_comp_01"
       :template "nursing_competency_checklist"
       :template_version "2026.1.0"
       :status "completed"
       :completed_at "2026-12-05"}]
  :progress
    {:nursing_license
      {:status "completed"
       :document "doc_lic_02"
       :roles {:subject "completed" :reviewer "completed"}}
     :exclusion_list_check {:status "completed" :document "chk_excl_01" :roles {:provider "completed"}}
     :hepatitis_b_vaccination {:status "completed" :document "doc_hepb_01" :roles {:subject "completed"}}
     :bloodborne_pathogens_training {:status "completed" :document "doc_bbp_01" :roles {:subject "completed"}}
     :respirator_fit_test
      {:status "completed"
       :document "doc_fit_01"
       :roles {:subject "completed" :reviewer "completed"}}
     :hipaa_privacy_training {:status "completed" :document "doc_hipaa_02" :roles {:subject "completed"}}
     :tb_screening
      {:status "completed"
       :document "doc_tb_02"
       :roles {:subject "completed" :reviewer "completed"}}
     :bls_certification
      {:status "completed"
       :document "doc_bls_02"
       :roles {:subject "completed" :reviewer "completed"}}
     :competency_checklist
      {:status "completed"
       :document "doc_comp_01"
       :roles {:subject "completed" :reviewer "completed"}}}
  :expect
    {:required
      ["nursing_license"
       "exclusion_list_check"
       "hepatitis_b_vaccination"
       "bloodborne_pathogens_training"
       "respirator_fit_test"
       "hipaa_privacy_training"
       "tb_screening"
       "bls_certification"
       "competency_checklist"]
     :not_required
      ["exclusion_list_check:renewal"
       "bloodborne_pathogens_training:renewal"
       "respirator_fit_test:renewal"
       "competency_checklist:renewal"]
     :states
      {:exclusion_list_check "complete"
       :bloodborne_pathogens_training "complete"
       :respirator_fit_test "complete"
       :competency_checklist "complete"}
     :wake_at "2026-12-29"
     :missing_facts []}
  :steps
    [{:name "enter-monthly-exclusion-7-day-renewal-window"
       :as_of "2026-12-30"
       :expect
        {:required
          ["nursing_license"
           "exclusion_list_check"
           "exclusion_list_check:renewal"
           "hepatitis_b_vaccination"
           "bloodborne_pathogens_training"
           "respirator_fit_test"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "competency_checklist"]
         :not_required
          ["bloodborne_pathogens_training:renewal"
           "respirator_fit_test:renewal"
           "competency_checklist:renewal"]
         :states
          {:exclusion_list_check "complete"
           "exclusion_list_check:renewal" "available"
           :bloodborne_pathogens_training "complete"
           :respirator_fit_test "complete"
           :competency_checklist "complete"}
         :wake_at "2027-01-05"
         :missing_facts []}}
     {:name "advance-past-monthly-exclusion-expiry"
       :as_of "2027-01-06"
       :expect
        {:not_required
          ["exclusion_list_check:renewal"
           "bloodborne_pathogens_training:renewal"
           "respirator_fit_test:renewal"
           "competency_checklist:renewal"]
         :states
          {:exclusion_list_check "expired"
           :bloodborne_pathogens_training "complete"
           :respirator_fit_test "complete"
           :competency_checklist "complete"}
         :wake_at "2027-11-05"
         :missing_facts []}}
     {:name "enter-annual-30-day-renewal-window"
       :as_of "2027-11-10"
       :expect
        {:required
          ["nursing_license"
           "exclusion_list_check"
           "hepatitis_b_vaccination"
           "bloodborne_pathogens_training"
           "bloodborne_pathogens_training:renewal"
           "respirator_fit_test"
           "respirator_fit_test:renewal"
           "hipaa_privacy_training"
           "tb_screening"
           "bls_certification"
           "competency_checklist"
           "competency_checklist:renewal"]
         :states
          {:exclusion_list_check "expired"
           :bloodborne_pathogens_training "complete"
           "bloodborne_pathogens_training:renewal" "available"
           :respirator_fit_test "complete"
           "respirator_fit_test:renewal" "available"
           :competency_checklist "complete"
           "competency_checklist:renewal" "available"}
         :wake_at "2027-12-05"
         :missing_facts []}}
     {:name "advance-past-annual-expiry"
       :as_of "2027-12-06"
       :expect
        {:not_required
          ["exclusion_list_check:renewal"
           "bloodborne_pathogens_training:renewal"
           "respirator_fit_test:renewal"
           "competency_checklist:renewal"]
         :states
          {:exclusion_list_check "expired"
           :bloodborne_pathogens_training "expired"
           :respirator_fit_test "expired"
           :competency_checklist "expired"
           :hepatitis_b_vaccination "complete"
           :hipaa_privacy_training "complete"
           :tb_screening "complete"}
         :missing_facts []}}])