SolutionGuidance / psm

Welcome to the Medicare/Medicaid Provider Enrollment Screening Portal
http://projectpsm.org/
Other
26 stars 20 forks source link

Source code #1030

Closed Ylowe closed 5 years ago

Ylowe commented 6 years ago

I was looking to get a peek into the source code regarding specifying the database which the app draws information from, and how the app queries information from the database. I can't seem to find it in the psm-app anywhere. Any further information about the source code organization or the database architecture would be extremely helpful.

Thank you!

jasonaowen commented 6 years ago

This is a pretty broad question. I will try to answer it, but it would help if you shared the problem you were trying solve, and what you've attempted so far. These kinds of questions are also more easily solved interactively; I suggest you join our Zulip server and ask in the "Provider Screening" stream.

The PSM relies upon WildFly for providing connections to the database. See the database configuration section of the install docs for more detail. The PSM is hard-coded to look for two data sources, named TaskServiceDS and MitaDS; both must be configured in WildFly, and may point to the same PostgreSQL database.

Queries are generated by Hibernate, an object-relational mapping tool, which fulfills the Java EE persistence API. The @Entitys defined in the PSM are all in the gov.medicaid.entities package; generally, the persistence-related code should all be contained in the cms-business-process subproject.

Does this help, @Ylowe?

Ylowe commented 6 years ago

Hi Jason,

This helps tremendously. Thank you so much!

Yang

Get Outlook for iOShttps://aka.ms/o0ukef


From: Jason Owen notifications@github.com Sent: Tuesday, August 14, 2018 3:40:04 PM To: SolutionGuidance/psm Cc: Lowe, Yang; Mention Subject: Re: [SolutionGuidance/psm] Source code (#1030)

This is a pretty broad question. I will try to answer it, but it would help if you shared the problem you were trying solve, and what you've attempted so far. These kinds of questions are also more easily solved interactively; I suggest you join our Zulip serverhttps://chat.opentechstrategies.com/#narrow/stream/Provider.20Screening and ask in the "Provider Screening" stream.

The PSM relies upon WildFly for providing connections to the database. See the database configuration section of the install docshttps://github.com/SolutionGuidance/psm/blob/master/INSTALL.md#configure-database for more detail. The PSM is hard-coded to look for two data sources, named TaskServiceDS and MitaDS; both must be configured in WildFly, and may point to the same PostgreSQL database.

Queries are generated by Hibernate, an object-relational mapping tool, which fulfills the Java EE persistence API. The @Entitys defined in the PSM are all in the gov.medicaid.entities packagehttps://github.com/SolutionGuidance/psm/tree/584287df0cb30348370a21a4cb36016e8e64cc43/psm-app/services/src/main/java/gov/medicaid/entities; generally, the persistence-related code should all be contained in the cms-business-process subproject.

Does this help, @Ylowehttps://github.com/Ylowe?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/SolutionGuidance/psm/issues/1030#issuecomment-412991238, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmsWEyHQU91a2WZKAeR3MuRDu05knskGks5uQyeUgaJpZM4V9B0z.