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

Adding Appointement resource #1007

Open
MariemBouzaien opened this issue Feb 13, 2022 · 6 comments
Open

Adding Appointement resource #1007

MariemBouzaien opened this issue Feb 13, 2022 · 6 comments
Labels

Comments

@MariemBouzaien
Copy link

Hi
I need to add the Appointment resource in the output file
Can you please help me?

@jawalonoski
Copy link
Member

@MariemBouzaien Synthea does not currently simulate the appointment scheduling process. You can substitute Encounter data for appointments. See #852.

@MariemBouzaien
Copy link
Author

@jawalonoski thank you, but it's the same for Questionnaire, QuestionnaireResponse? What can I do about it?

@jawalonoski
Copy link
Member

@MariemBouzaien Good question. Right now, we have two options to implement a "questionnaire."

In the HARK questionnaire, we implemented the response as a DiagnosticReport. See https://synthetichealth.github.io/module-builder/#encounter/hark_screening

In the PRAPARE questionnaire, we implemented the response as MultiObservation (which is equivalent to an Observation with component observations). See https://synthetichealth.github.io/module-builder/#encounter/sdoh_hrsn

There is no grand logic about why we used a DiagnosticReport or a MultiObservation.

In either case, until we make Questionnaire a first-class object in Synthea, you'd have to post process the data and convert the data into QuestionnaireResponse.

@MariemBouzaien
Copy link
Author

@jawalonoski Thank you for your help
but I need you for another thing,
how can I change the way of generation of patient id? I want whatever to be incremented automatically

@jawalonoski
Copy link
Member

The patient ID is hard-coded as UUIDs.

If you want to change them, you need to alter this code:

public static void birth(Person person, long time) {
Map<String, Object> attributes = person.attributes;
attributes.put(Person.ID, person.randUUID().toString());

@tomkaith13
Copy link

tomkaith13 commented Sep 6, 2023

fyi.. for anyone looking on how to get Synthea to generate Appointments using Encounter data, here is an example:
#1362

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

3 participants