Implement profile generator of patientZero#12
Merged
Conversation
1. merge outline files 2. final character output file 3. delete inter-results of exam and symptoms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
It builds a disease-grounded synthetic patient record through disease outline generation, epidemiological attribute sampling, patient profile/symptom generation, examination result generation, and validation-driven retry.
How It Works
The generator follows the Patient-Zero static synthesis flow:
DiseaseOutline.data/resources/PatientZero/and the final record todata/characters/PatientZero.json.How to Use
Generate through the standard generator entrypoint by setting
disease_keyinPatientZeroGeneratorConfig:For reproducible direct generation, call
generate_static_recordwith a seed:Add New Disease
To add a new disease, provide the disease source knowledge and disease-specific generation references in the Patient-Zero resource directory.
Files to update:
data/resources/PatientZero/raw_outlines/Add one raw disease outline JSON for the new disease.
data/resources/PatientZero/disease_attribute_priors.jsonAdd disease-specific demographic, severity, and lifestyle prior overrides if needed.
data/resources/PatientZero/exam_references.jsonAdd the disease examination reference, including selected scales and expected findings.
data/resources/PatientZero/disease_outlines/This can be generated automatically by
generate_disease_outline()from the raw outline.After adding the resources, run generation with the new
disease_key.