Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial data is written into ndjson files when run_synthea is interrupted by CTL+C #1517

Open
jackliusr opened this issue Oct 8, 2024 · 0 comments
Labels

Comments

@jackliusr
Copy link

What happened?

Partial data is written into ndjson files when run_synthea is interrupted by CTL+C. I was running run_synthea -p 1000000 and interrupted it in the middle. some ndjson files are invalid due to that it takes too long. for example.

{"resourceType":"Patient","id":"617fcb8a-c050-ac83-e50a-e63babc110ea","meta":{"profile":["http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient"]},"text":{"status":"generated","div":"<div xmlns=\"http://www.w3.org/1999/xhtml\">Generated by <a href=\"https://github.com/synthetichealth/synthea\">Synthea</a>.Version identifier: v3.3.0\n . Person seed: 1788825123933310420 Population seed: 1728303813543</div>"},"extension":[{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-race","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2106-3","display":"White"}},{"url":"text","valueString":"White"}]},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity","extension":[{"url":"ombCategory","valueCoding":{"system":"urn:oid:2.16.840.1.113883.6.238","code":"2186-5","display":"Not Hispanic or Latino"}},{"url":"text","valueString":"Not Hispanic or Latino"}]},{"url":"http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName","valueString":"Ranae267 Parisian75"},{"url":"http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex","valueCode":"F"},{"url":"http://hl7.org/fhir/StructureDefinition/patient-birthPlace","valueAddress":{"city":"Hanson","state":"Massachusetts","country":"US"}},{"url":"http://synthetichealth.github.io/synthea/disability-adjusted-life-years","valueDecimal":0.28949028591371295},{"url":"http://synthetichealth.github.io/synthea/quality-adjusted-life-years","valueDecimal":25.710509714086285}],"identifier":[{"system":"https://github.com/synthetichealth/synthea","value":"617fcb8a-c050-ac83-e50a-e63babc110ea"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"MR","display":"Medical Record Number"}],"text":"Medical Record Number"},"system":"http://hospital.smarthealthit.org","value":"617fcb8a-c050-ac83-e50a-e63babc110ea"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"SS","display":"Social Security Number"}],"text":"Social Security Number"},"system":"http://hl7.org/fhir/sid/us-ssn","value":"999-85-4203"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"DL","display":"Driver's license number"}],"text":"Driver's license number"},"system":"urn:oid:2.16.840.1.113883.4.3.25","value":"S99986048"},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v2-0203","code":"PPN","display":"Passport Number"}],"text":"Passport Number"},"system":"http://hl7.org/fhir/sid/passport-USA","value":"X10300576X"}],"name":[{"use":"official","family":"Sauer652","given":["Minta575","Kirby843"],"prefix":["Ms."]}],"telecom":[{"system":"phone","value":"555-525-7954","use":"home"}],"gender":"female","birthDate":"1997-10-13","address":[{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/geolocation","extension":[{"url":"latitude","valueDecimal":42.46561380250501},{"url":"longitude","valueDecimal":-71.10127504982111}]}],"line":["988 Spinka Wynd Suite 15"],"city":"Medford","state":"MA","postalCode":"02155","country":"US"}],"maritalStatus":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/v3-MaritalStatus","code":"S","display":"Never Married"}],"text":"Never Married"},"multipleBirthBoolean":false,"communication":[{"

Environment

- OS: aws linux 
- Java: aws jdk 17

Relevant log output

No response

@jackliusr jackliusr added the bug label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant