Skip to content

Commit b0d8ee2

Browse files
more unit test fixes to urls
1 parent abd23c6 commit b0d8ee2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/fhir/bluebutton/views/patient_viewset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class PatientViewSet(ResourceViewSet):
3838
viewsets: django-rest-framework ViewSet base class
3939
"""
4040

41-
resource_type = 'Patient'
42-
4341
# TODO - I don't love the separation here, could be indicative that we don't want to move to resource based ViewSets, or that
4442
# we need a better base class, or these differences should be defined in PatientViewSet.
4543
REGEX_LASTUPDATED_VALUE = r'^((lt)|(le)|(gt)|(ge)).+'
@@ -74,6 +72,7 @@ class PatientViewSet(ResourceViewSet):
7472
required_scopes = ['patient/Patient.read', 'patient/Patient.rs', 'patient/Patient.s']
7573

7674
def __init__(self, version, **kwargs):
75+
self.resource_type = 'Patient'
7776
super().__init__(version)
7877

7978
def build_url(self, fhir_settings, resource_type, resource_id=None, *args, **kwargs):

0 commit comments

Comments
 (0)