indivo.views.reports package¶
Submodules¶
indivo.views.reports.ccr module¶
- indivo.views.reports.ccr.report_ccr(request, record=None, carenet=None)¶
Export patient data as a Continuity of Care Record (CCR) document.
Will return 200 OK with a CCR on success, 400 Bad Request if neither a record or carenet was passed.
indivo.views.reports.equipment module¶
- indivo.views.reports.equipment._equipment_list(request, *args, **kwargs)¶
List the equipment objects matching the passed query parameters.
See API Query Interface for a listing of valid parameters.
Will return 200 OK with a list of equipment on success, 400 Bad Request if any invalid query parameters were passed.
- indivo.views.reports.equipment.carenet_equipment_list(*args, **kwargs)¶
List the equipment data for a given carenet.
For 1:1 mapping of URLs to views. Just calls _equipment_list().
- indivo.views.reports.equipment.equipment_list(*args, **kwargs)¶
List the equipment data for a given record.
For 1:1 mapping of URLs to views. Just calls _equipment_list().
indivo.views.reports.generic module¶
- indivo.views.reports.generic._generic_list(request, query_options, data_model, record=None, carenet=None, response_format=None)¶
List the Model objects matching the passed query parameters.
See API Query Interface for a listing of valid parameters.
Will return 200 OK with a list of Models or AggregateReports on success, 400 Bad Request if any invalid query parameters were passed.
- indivo.views.reports.generic.aggregate_json(query)¶
Serialize an aggregate query’s results to a JSON string
- indivo.views.reports.generic.aggregate_xml(query)¶
Serialize an aggregate query’s results to an XML string
- indivo.views.reports.generic.carenet_generic_list(request, *args, **kwargs)¶
List the Model data for a given carenet.
- indivo.views.reports.generic.generic_list(request, *args, **kwargs)¶
List the Model data for a given record.
- indivo.views.reports.generic.serialize(cls, format, query, record=None, carenet=None)¶
Serialize an indivo.lib.query to the requested format
Non-aggregate queries are handled by the data model’s own serialization methods, while aggregate queries are serialized in a standard way to AggregateReports
Returns:
- A string representation of the serialized query results in the requested format
- indivo.views.reports.generic.serialize_as_aggregate(format, query)¶
Serialize an aggregate query to the requested format
indivo.views.reports.measurement module¶
- indivo.views.reports.measurement._measurement_list(request, *args, **kwargs)¶
List the measurement objects matching the passed query parameters.
See API Query Interface for a listing of valid parameters.
Will return 200 OK with a list of measurements on success, 400 Bad Request if any invalid query parameters were passed.
- indivo.views.reports.measurement.carenet_measurement_list(*args, **kwargs)¶
List the measurement data for a given carenet.
For 1:1 mapping of URLs to views. Just calls _measurement_list().
- indivo.views.reports.measurement.measurement_list(*args, **kwargs)¶
List the measurement data for a given record.
For 1:1 mapping of URLs to views. Just calls _measurement_list().
indivo.views.reports.procedure module¶
- indivo.views.reports.procedure._procedure_list(request, *args, **kwargs)¶
List the procedure objects matching the passed query parameters.
See API Query Interface for a listing of valid parameters.
Will return 200 OK with a list of procedures on success, 400 Bad Request if any invalid query parameters were passed.
- indivo.views.reports.procedure.carenet_procedure_list(*args, **kwargs)¶
List the procedure data for a given carenet.
For 1:1 mapping of URLs to views. Just calls _procedure_list().
- indivo.views.reports.procedure.procedure_list(*args, **kwargs)¶
List the procedure data for a given record.
For 1:1 mapping of URLs to views. Just calls _procedure_list().
indivo.views.reports.simple_clinical_notes module¶
- indivo.views.reports.simple_clinical_notes._simple_clinical_notes_list(request, *args, **kwargs)¶
List the simple_clinical_notes objects matching the passed query parameters.
See API Query Interface for a listing of valid parameters.
Will return 200 OK with a list of simple clinical notes on success, 400 Bad Request if any invalid query parameters were passed.
- indivo.views.reports.simple_clinical_notes.carenet_simple_clinical_notes_list(*args, **kwargs)¶
List the simple_clinical_notes data for a given carenet.
For 1:1 mapping of URLs to views. Just calls _simple_clinical_notes_list().
- indivo.views.reports.simple_clinical_notes.simple_clinical_notes_list(*args, **kwargs)¶
List the simple_clinical_notes data for a given record.
For 1:1 mapping of URLs to views. Just calls _simple_clinical_notes_list().
indivo.views.reports.smart module¶
- indivo.views.reports.smart.get_default_query_args()¶
- indivo.views.reports.smart.smart_allergies(request, record)¶
SMART allergy list, serialized as RDF/XML.
A bit more complicated than the generic list view, since we have to serialize AllergyExclusions as well.
- indivo.views.reports.smart.smart_allergies_instance(request, record, model_id)¶
Retrieve a specific instance of a SMART allergy.
SMART allergies can be an Allergy or an AllergyExclusion
- indivo.views.reports.smart.smart_generic(request, record, model_name)¶
SMART-compatible alias for the generic list view: returns data_models serialized as SMART RDF.
- indivo.views.reports.smart.smart_generic_instance(request, record, model_name, model_id)¶
Retrieve a specific instance of a SMART model.