コード例 #1
0
    def list(
        self,
        account_id,
        type,
    ):
        """List.
        :param account_id: Limit to global filters and filters within the account namespaces
        :param type: The type of filter to list
        """
        request_data = {
           'account_id': account_id,
           'type': type,
        }
	
        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping['INVALID_CONDITION'] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FIELD'] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        query_data = {
            'api': self._api,
            'url': '/filter/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'filters'
        return QueryOPSF(**query_data)
コード例 #2
0
ファイル: hl7.py プロジェクト: dicomgrid/sdk-python
    def transform_list(
        self,
        account_id,
    ):
        """Transform list.

        :param account_id: The account uuid
        """
        request_data = {
           'account_id': account_id,
        }
	
        errors_mapping = {}
        errors_mapping[('FILTER_NOT_FOUND', None)] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping[('INVALID_CONDITION', None)] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping[('INVALID_FIELD', None)] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping[('INVALID_SORT_FIELD', None)] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping[('INVALID_SORT_ORDER', None)] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        errors_mapping[('MISSING_FIELDS', None)] = MissingFields('A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields')
        errors_mapping[('NOT_FOUND', None)] = NotFound('The account can not be found')
        errors_mapping[('NOT_PERMITTED', None)] = NotPermitted('You are not permitted to view this list')
        query_data = {
            'api': self._api,
            'url': '/hl7/transform/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'transforms'
        return AsyncQueryOPSF(**query_data)
コード例 #3
0
    def public(
        self,
        account_id,
    ):
        """Public.
        :param account_id: The account the user is in
        """
        request_data = {
           'account_id': account_id,
        }
	
        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping['INVALID_CONDITION'] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FIELD'] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FILTER'] = InvalidFilter('Invalid filter field')
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        errors_mapping['MISSING_FIELDS'] = MissingFields('A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields')
        errors_mapping['NOT_FOUND'] = NotFound('The node or account can not be found')
        errors_mapping['NOT_PERMITTED'] = NotPermitted('You are not permitted to do this')
        query_data = {
            'api': self._api,
            'url': '/node/public',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'nodes'
        return QueryOPSF(**query_data)
コード例 #4
0
ファイル: message.py プロジェクト: dyens/sdk-python
    def list(self, ):
        """List.
        """
        request_data = {}

        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping['INVALID_CONDITION'] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_FIELD'] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        errors_mapping['MISSING_FIELDS'] = MissingFields(
            'A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields'
        )
        query_data = {
            'api': self._api,
            'url': '/message/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'messages'
        return QueryOPSF(**query_data)
コード例 #5
0
    def progress_list(
        self,
        destination_id=None,
        node_id=None,
    ):
        """Progress list.
        :param destination_id: destination_id
        :param node_id: node_id

        Notes:
        (node_id OR destination_id) - The node or destination id
        """
        request_data = {
           'destination_id': destination_id,
           'node_id': node_id,
        }
	
        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping['INVALID_CONDITION'] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FIELD'] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        errors_mapping['MISSING_FIELDS'] = MissingFields('A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields')
        errors_mapping['NOT_FOUND'] = NotFound('The node can not be found')
        errors_mapping['NOT_PERMITTED'] = NotPermitted('You are not permitted to do this')
        query_data = {
            'api': self._api,
            'url': '/node/progress/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'progresses'
        return QueryOPSF(**query_data)
コード例 #6
0
ファイル: query.py プロジェクト: dicomgrid/sdk-python
    def list(self, ):
        """List.

        """
        request_data = {}

        errors_mapping = {}
        errors_mapping[('FILTER_NOT_FOUND', None)] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping[('INVALID_CONDITION', None)] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_FIELD', None)] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_SORT_FIELD', None)] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('INVALID_SORT_ORDER', None)] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        query_data = {
            'api': self._api,
            'url': '/query/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'queries'
        return AsyncQueryOPSF(**query_data)
コード例 #7
0
ファイル: tag.py プロジェクト: dyens/sdk-python
    def list(
        self,
        object=None,
    ):
        """List.
        :param object: object

        Notes:
        object - Object class (Study OR User_account OR Group OR Location OR Account OR Patient OR Case OR Order OR Message)
        """
        request_data = {
           'object': object,
        }
	
        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping['INVALID_CONDITION'] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FIELD'] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        query_data = {
            'api': self._api,
            'url': '/tag/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'tags'
        return QueryOPSF(**query_data)
コード例 #8
0
ファイル: radreport.py プロジェクト: dyens/sdk-python
    def template_list(
        self,
        account_id,
        active=None,
        type=None,
    ):
        """Template list.
        :param account_id: uuid of the account
        :param active: Limit to active templates (optional)
        :param type: Limit to this type (optional)
        """
        request_data = {
           'active': active,
           'account_id': account_id,
           'type': type,
        }
	
        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound('The filter can not be found. The error_subtype will hold the filter UUID')
        errors_mapping['INVALID_CONDITION'] = InvalidCondition('The condition is not support. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_FIELD'] = InvalidField('The field is not valid for this object. The error_subtype will hold the filter expression this applies to')
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField('The field is not valid for this object. The error_subtype will hold the field name this applies to')
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder('The sort order for the field is invalid. The error_subtype will hold the field name this applies to')
        errors_mapping['MISSING_FIELDS'] = MissingFields('A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields')
        errors_mapping['NOT_PERMITTED'] = NotPermitted('You are not permitted to perform this operation')
        query_data = {
            'api': self._api,
            'url': '/radreport/template/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'templates'
        return QueryOPSF(**query_data)
コード例 #9
0
ファイル: customcode.py プロジェクト: dyens/sdk-python
    def deploy_list(
        self,
        customcode_id=None,
        namespace_id=None,
    ):
        """Deploy list.
        :param customcode_id: customcode_id
        :param namespace_id: namespace_id

        Notes:
        (namespace_id OR customcode_id) - uuid of either the namespace or customcode to show the deployments for
        """
        request_data = {
            'customcode_id': customcode_id,
            'namespace_id': namespace_id,
        }

        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping['INVALID_CONDITION'] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_FIELD'] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        errors_mapping['MISSING_FIELDS'] = MissingFields(
            'A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields'
        )
        errors_mapping['NOT_FOUND'] = NotFound(
            'The namespace or customcode can not be found')
        errors_mapping['NOT_PERMITTED'] = NotPermitted(
            'You are not permitted to do this')
        query_data = {
            'api': self._api,
            'url': '/customcode/deploy/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'deployments'
        return QueryOPSF(**query_data)
コード例 #10
0
    def list(
        self,
        account_id,
        strict_account_filter=None,
        study_extra=None,
    ):
        """List.

        :param account_id: Limit to activities in this account and the personal activities
        :param strict_account_filter: Flag to apply the account_id to personal activites as well (optional)
        :param study_extra: Flag to return extra study fields (optional)
        """
        request_data = {
            'account_id': account_id,
            'strict_account_filter': strict_account_filter,
            'study_extra': study_extra,
        }

        errors_mapping = {}
        errors_mapping[('FILTER_NOT_FOUND', None)] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping[('INVALID_CONDITION', None)] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_FIELD', None)] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_SORT_FIELD', None)] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('INVALID_SORT_ORDER', None)] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('MISSING_FIELDS', None)] = MissingFields(
            'A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields'
        )
        query_data = {
            'api': self._api,
            'url': '/activity/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'activities'
        return QueryOPSF(**query_data)
コード例 #11
0
    def user_list(
        self,
        user_id,
    ):
        """User list.

        :param user_id: The user id
        """
        request_data = {
            'user_id': user_id,
        }

        errors_mapping = {}
        errors_mapping[('FILTER_NOT_FOUND', None)] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping[('INVALID_CONDITION', None)] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_FIELD', None)] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping[('INVALID_SORT_FIELD', None)] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('INVALID_SORT_ORDER', None)] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('MISSING_FIELDS', None)] = MissingFields(
            'A required field is missing or does not have data in it. The error_subtype holds a array of all the missing fields'
        )
        errors_mapping[('NOT_FOUND',
                        None)] = NotFound('The user was not found.')
        query_data = {
            'api': self._api,
            'url': '/radreport/user/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'radreports'
        return AsyncQueryOPSF(**query_data)
コード例 #12
0
    def portal_list(self, ):
        """Portal list.

        """
        request_data = {}

        errors_mapping = {}
        errors_mapping[('INVALID_SORT_FIELD', None)] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping[('INVALID_SORT_ORDER', None)] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        query_data = {
            'api': self._api,
            'url': '/patient/portal/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': False,
        }
        query_data['paginated_field'] = 'portals'
        return AsyncQueryOPS(**query_data)
コード例 #13
0
ファイル: account.py プロジェクト: dyens/sdk-python
    def list(
        self,
        permissions=None,
    ):
        """List.
        :param permissions: Flag to return the users role and permissions in the accounts (optional)
        """
        request_data = {
            'permissions': permissions,
        }

        errors_mapping = {}
        errors_mapping['FILTER_NOT_FOUND'] = FilterNotFound(
            'The filter can not be found. The error_subtype will hold the filter UUID'
        )
        errors_mapping['INVALID_CONDITION'] = InvalidCondition(
            'The condition is not support. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_FIELD'] = InvalidField(
            'The field is not valid for this object. The error_subtype will hold the filter expression this applies to'
        )
        errors_mapping['INVALID_SORT_FIELD'] = InvalidSortField(
            'The field is not valid for this object. The error_subtype will hold the field name this applies to'
        )
        errors_mapping['INVALID_SORT_ORDER'] = InvalidSortOrder(
            'The sort order for the field is invalid. The error_subtype will hold the field name this applies to'
        )
        query_data = {
            'api': self._api,
            'url': '/account/list',
            'request_data': request_data,
            'errors_mapping': errors_mapping,
            'required_sid': True,
        }
        query_data['paginated_field'] = 'accounts'
        return QueryOPSF(**query_data)