-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2041 from coronasafe/develop
Staging release for v24.14.0
- Loading branch information
Showing
9 changed files
with
201 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
care/facility/migrations/0423_patientconsultation_consent_records_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 4.2.10 on 2024-03-27 17:32 | ||
|
||
from django.db import migrations, models | ||
|
||
import care.utils.models.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0422_merge_20240325_1411"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="patientconsultation", | ||
name="consent_records", | ||
field=models.JSONField( | ||
default=list, | ||
validators=[ | ||
care.utils.models.validators.JSONFieldSchemaValidator( | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"items": [ | ||
{ | ||
"additionalProperties": False, | ||
"properties": { | ||
"deleted": {"type": "boolean"}, | ||
"id": {"type": "string"}, | ||
"patient_code_status": {"type": "number"}, | ||
"type": {"type": "number"}, | ||
}, | ||
"required": ["id", "type"], | ||
"type": "object", | ||
} | ||
], | ||
"type": "array", | ||
} | ||
) | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="fileupload", | ||
name="file_type", | ||
field=models.IntegerField( | ||
choices=[ | ||
(1, "PATIENT"), | ||
(2, "CONSULTATION"), | ||
(3, "SAMPLE_MANAGEMENT"), | ||
(4, "CLAIM"), | ||
(5, "DISCHARGE_SUMMARY"), | ||
(6, "COMMUNICATION"), | ||
(7, "CONSENT_RECORD"), | ||
], | ||
default=1, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters