-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add capabilities for coding gap related plugins (#191)
- Loading branch information
Showing
4 changed files
with
220 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
from django.db import models | ||
|
||
from canvas_sdk.v1.data import Patient | ||
from canvas_sdk.v1.data.user import CanvasUser | ||
|
||
|
||
class DetectedIssue(models.Model): | ||
"""DetectedIssue.""" | ||
|
||
class Meta: | ||
managed = False | ||
app_label = "canvas_sdk" | ||
db_table = "canvas_sdk_data_api_detectedissue_001" | ||
|
||
id = models.UUIDField() | ||
dbid = models.BigIntegerField(primary_key=True) | ||
created = models.DateTimeField() | ||
modified = models.DateTimeField() | ||
identified = models.DateTimeField() | ||
deleted = models.BooleanField() | ||
originator = models.ForeignKey(CanvasUser, on_delete=models.DO_NOTHING) | ||
committer = models.ForeignKey(CanvasUser, on_delete=models.DO_NOTHING) | ||
entered_in_error = models.ForeignKey(CanvasUser, on_delete=models.DO_NOTHING) | ||
patient = models.ForeignKey( | ||
Patient, on_delete=models.DO_NOTHING, related_name="detected_issues" | ||
) | ||
code = models.CharField() | ||
status = models.CharField() | ||
severity = models.CharField() | ||
reference = models.CharField() | ||
issue_identifier = models.CharField() | ||
issue_identifier_system = models.CharField() | ||
detail = models.TextField() | ||
|
||
|
||
class DetectedIssueEvidence(models.Model): | ||
"""DetectedIssueEvidence.""" | ||
|
||
class Meta: | ||
managed = False | ||
app_label = "canvas_sdk" | ||
db_table = "canvas_sdk_data_api_detectedissueevidence_001" | ||
|
||
dbid = models.BigIntegerField(primary_key=True) | ||
system = models.CharField() | ||
version = models.CharField() | ||
code = models.CharField() | ||
display = models.CharField() | ||
user_selected = models.BooleanField() | ||
detected_issue = models.ForeignKey( | ||
DetectedIssue, on_delete=models.DO_NOTHING, related_name="evidence" | ||
) |
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