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

[IMP] impressions: Remove dependancy on encounters #246

Merged
merged 6 commits into from
Jan 24, 2025

Conversation

etobella
Copy link
Collaborator

No description provided.

@etobella etobella force-pushed the 16.0-fix-impression branch 2 times, most recently from 4381734 to ee3d200 Compare January 22, 2025 14:38
@etobella etobella force-pushed the 16.0-fix-impression branch from ee3d200 to 67e35ed Compare January 22, 2025 14:44
@@ -36,21 +36,13 @@
<field name="name">Gynecology</field>
<field name="description">Gynecology</field>
</record>
<record id="encounter_01_patient_01" model="medical.encounter">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto no lo añades en medical_clinical_impression_encounter

<record id="impression_01_patient_01" model="medical.clinical.impression">
<field name="fhir_state">completed</field>
<field
name="specialty_id"
ref="medical_clinical_impression.specialty_gynecology"
/>
<field name="patient_id" ref="medical_base.patient_01" />
<field
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto creo que también se debería añadir en medical_clinical_impression_encounter

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Son datos de DEmo y no son muy relevantes

# FHIR: encounter

patient_id = fields.Many2one(
related="encounter_id.patient_id", readonly=True, states={}
Copy link
Contributor

@luisDIXMIT luisDIXMIT Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

De esta forma, al instalar este módulo se sobreescribe el comportamiento del campo patient_id y ya no puede ser elegido será establecido por el patient relacionado en el campo encounter_id. ¿Es la intención la de tener diferente funcionamiento?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si, es la idea

@etobella etobella force-pushed the 16.0-fix-impression branch from 9aac4d8 to 3d0acd2 Compare January 24, 2025 15:04
@etobella etobella merged commit 96ba9f4 into 16.0 Jan 24, 2025
4 checks passed
@etobella etobella deleted the 16.0-fix-impression branch January 25, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants