Replies: 1 comment 4 replies
-
It looks like you're doing everything right given the population you want to create, but Prostate cancer in Synthea is modeled a little differently than other conditions. In this case it's only modeled for the Veteran population. Instead of ~13% of the male population you should be seeing it in a % of the Veteran population, so that's much smaller. For this specific case you may want to use the "veteran population override" to generate a population of only Veterans. To do that, add the flag Re: the number of records in hospital/practitionerInformation files, that sounds like a bug to me. These files are intended to contain only the hospitals and practitioners that actually provided care to the exported patients, but the way the keep module works is it generates a lot of patients and only exports some of them, so the hospital/provider info associated with the records that were thrown away is still present. I'll open an issue for that |
Beta Was this translation helpful? Give feedback.
-
My keep.json is as shown below. I have simple "Or" of two conditions related to prostate. I want to generate 5 patients. (Later I hope to generate 5 more that would have "And" of these two conditions.
java -jar synthea-with-dependencies.jar -p 5 -a 50-80 -k keep.json -g M --generate.max_attempts_to_keep_patient=10000
takes a very long time and generates 4 patients for me. What might I be doing wrong here? It seems that, given that cancer happens to about 13 out of 100 males (over their lifetime), it should not be statistically too rare for this to be happening in generation logic?
Also, in output/fhir i get huge files for:
15048 lines in file: output/fhir/hospitalInformation1697759621010.json
17018 lines in file: output/fhir/practitionerInformation1697759621010.json
Is it possible to control number of practioners and hospitals that get generated? I have trouble uploading these files into my locally running HAPI FHIR server.
2023-10-20 12:10:34.114 [http-nio-8080-exec-6] WARN c.u.f.r.s.i.ExceptionHandlingInterceptor [ExceptionHandlingInterceptor.java:205] Failure during REST processing: ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException: HAPI-1091: Invalid match URL "Practitioner?identifier=http://hl7.org/fhir/sid/us-npi|9999985291" - No resources match this search
{
"name": "Generated Keep Module",
"states": {
"Initial": {
"type": "Initial",
"name": "Initial",
"conditional_transition": [
{
"transition": "Keep",
"condition": {
"condition_type": "Or",
"conditions": [
{
"condition_type": "Active Condition",
"codes": [
{
"system": "SNOMED-CT",
"code": "126906006",
"display": "Neoplasm of prostate"
}
]
},
{
"condition_type": "Active Condition",
"codes": [
{
"system": "SNOMED-CT",
"code": "65575008",
"display": "Biopsy of prostate"
}
]
}
]
}
},
{
"transition": "Terminal"
}
]
},
"Terminal": {
"type": "Terminal",
"name": "Terminal"
},
"Keep": {
"type": "Terminal",
"name": "Keep"
}
},
"gmf_version": 2
}
Beta Was this translation helpful? Give feedback.
All reactions