GitHub Actions commited on
Commit ·
1e8f1ad
1
Parent(s): b406c7e
🚀 Auto-sync from GitHub: c3fed70
Browse files
logs/semantic_ppo/PPO_1/events.out.tfevents.1769298476.Lincoln.33632.0
CHANGED
|
Binary files a/logs/semantic_ppo/PPO_1/events.out.tfevents.1769298476.Lincoln.33632.0 and b/logs/semantic_ppo/PPO_1/events.out.tfevents.1769298476.Lincoln.33632.0 differ
|
|
|
logs/semantic_ppo/evaluations.npz
CHANGED
|
Binary files a/logs/semantic_ppo/evaluations.npz and b/logs/semantic_ppo/evaluations.npz differ
|
|
|
nursesim_rl/pds_client.py
CHANGED
|
@@ -248,6 +248,9 @@ class PDSClient:
|
|
| 248 |
if is_restricted:
|
| 249 |
raise RestrictedPatientError(f"Access to patient record {nhs_number} is RESTRICTED (Code 'R'). Access Denied.")
|
| 250 |
|
|
|
|
|
|
|
|
|
|
| 251 |
# Check for deceased
|
| 252 |
is_deceased = data.get("deceasedBoolean", False) or \
|
| 253 |
data.get("deceasedDateTime") is not None
|
|
|
|
| 248 |
if is_restricted:
|
| 249 |
raise RestrictedPatientError(f"Access to patient record {nhs_number} is RESTRICTED (Code 'R'). Access Denied.")
|
| 250 |
|
| 251 |
+
if is_restricted:
|
| 252 |
+
raise ValueError(f"Access to restricted patient record denied for NHS Number: {nhs_number}")
|
| 253 |
+
|
| 254 |
# Check for deceased
|
| 255 |
is_deceased = data.get("deceasedBoolean", False) or \
|
| 256 |
data.get("deceasedDateTime") is not None
|