Create forms to support Clinical Gateway API which respect the access control configuration of imaging servers
The current implementation of the clinical gateway API requires that any changes be made via the backend administrative panel, despite the views being capable of supporting updates and changes via the API. The component needed to support updates via the API is a Django ModelForm
instance. This was not added during the %Sonador Gateway MVP: Receive medical imaging and signals data in the clinic milestone due to time constraints.
Requirements:
- Create a
ModelForm
instance for each of the four gateway models. Refer to #38 (closed) for details. - The model form for
GatewayImagingServer
needs to respect user permissions. TheClinicalGateway
model has is associate with aUser
account which acts as the owner. It should not be possible to attach an imaging server to the Gateway to which the user does not haveupload
,view
, andquery
permissions. - Add the model form the management and update views in
gateway.urls
.