Skip to content

Commit

Permalink
Added Perform Action
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Feb 6, 2025
1 parent 1750029 commit 9debe8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion care/emr/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Device(EMRBaseModel):
model_number = models.CharField(max_length=1024, null=True, blank=True)
part_number = models.CharField(max_length=1024, null=True, blank=True)
contact = models.JSONField(default=dict)
care_type = models.CharField(max_length=1024, null=True, blank=True , default=None)
care_type = models.CharField(max_length=1024, null=True, blank=True, default=None)

# Relations
facility = models.ForeignKey("facility.Facility", on_delete=models.CASCADE)
Expand Down
5 changes: 3 additions & 2 deletions care/emr/registries/device_type/device_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ def retrieve(self, obj):
"""
return {}

def perform_action(self , obj, action, request):
def perform_action(self, obj, action, request):
"""
Perform some kind of action on an asset, the HTTP request is proxied through as is.
an HTTP response object is expected as the return.
"""
return None # Return an HTTP Response
return # Return an HTTP Response


class DeviceTypeRegistry:
_device_types = {}
Expand Down

0 comments on commit 9debe8d

Please # to comment.