forked from botswana-harvard/edc-visit-schedule
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor changes to crf, requisition; add dummy panel for tests
- Loading branch information
Showing
7 changed files
with
37 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from .subject_schedule import SubjectSchedule, SubjectScheduleError | ||
from .schedule import Schedule | ||
from .site_visit_schedules import site_visit_schedules | ||
from .visit import Visit, Crf, Requisition, FormsCollection, Panel | ||
from .visit import Visit, Crf, Requisition, FormsCollection | ||
from .visit_schedule import VisitSchedule |
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 @@ | ||
from .dummy_panel import DummyPanel |
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,16 @@ | ||
|
||
class DummyPanel: | ||
|
||
"""A dummy lab panel object. | ||
""" | ||
|
||
def __init__(self, name=None, verbose_name=None, requisition_model=None): | ||
self.name = name | ||
self.verbose_name = verbose_name or name | ||
self.requisition_model = requisition_model | ||
|
||
def __str__(self): | ||
return self.verbose_name | ||
|
||
def __repr__(self): | ||
return f'{self.__class__.__name__}(name=\'{self.name}\')' |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from .crf import Crf | ||
from .forms_collection import FormsCollection, FormsCollectionError | ||
from .requisition import Requisition, Panel | ||
from .requisition import Requisition | ||
from .visit import Visit, VisitCodeError, VisitDateError | ||
from .window_period import WindowPeriod |
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