File size: 885 Bytes
a57504e
207b828
a57504e
 
 
 
 
 
 
207b828
a57504e
 
 
 
 
 
 
 
 
 
 
 
 
207b828
 
 
 
 
 
a57504e
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python3
"""Generate the compact machine-readable pre-Zorgfilter baseline."""

from __future__ import annotations

import argparse
import json
from pathlib import Path

from care_profile_baseline_summary import build_current_care_baseline_summary


def main() -> int:
    parser = argparse.ArgumentParser()
    parser.add_argument(
        "--output",
        default="output/validation/care_profile_v1_current_engine_baseline.json",
    )
    args = parser.parse_args()

    output_path = Path(args.output)
    output_path.parent.mkdir(parents=True, exist_ok=True)
    output_path.write_text(
        json.dumps(
            build_current_care_baseline_summary(),
            ensure_ascii=False,
            indent=2,
        )
        + "\n",
        encoding="utf-8",
    )
    print(output_path)
    return 0


if __name__ == "__main__":
    raise SystemExit(main())