{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Import Doctor Ratings" %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{% trans "Import Doctor Ratings" %}

{% trans "Import doctor ratings from HIS CSV export" %}

{% trans "Import History" %}

{% trans "Instructions" %}

{% trans "Expected CSV Format:" %}

{% trans "Upload Doctor Rating Report CSV from your HIS system." %}

  • {% trans "Header rows are automatically skipped" %}
  • {% trans "Department headers are detected automatically" %}
  • {% trans "Doctor IDs are extracted from names like '10738-NAME'" %}

{% trans "Required Columns:" %}

  • UHID - {% trans "Patient MRN" %}
  • Doctor Name - {% trans "With or without ID prefix" %}
  • Rating - {% trans "1-5 rating value" %}
  • Patient Name, Rating Date - {% trans "Optional" %}

{% trans "Upload CSV File" %}

{% csrf_token %}
{{ form.hospital }} {% if form.hospital.errors %}
{{ form.hospital.errors.0 }}
{% endif %}

{% trans "Select hospital these ratings belong to" %}

{{ form.skip_header_rows }} {% if form.skip_header_rows.errors %}
{{ form.skip_header_rows.errors.0 }}
{% endif %}

{% trans "Default is 6 rows (Doctor Rating Report format)" %}

{% trans "Drag and drop your CSV file here" %}

{% trans "or click to browse" %}

{{ form.csv_file }}
{% if form.csv_file.errors %}
{{ form.csv_file.errors.0 }}
{% endif %}

{% trans "Maximum file size: 10MB. Only .csv files accepted." %}

{% trans "Cancel" %}

{% trans "API Integration" %}

{% trans "You can also integrate directly with your HIS system using our API:" %}

POST /api/physicians/ratings/his/
{% trans "# Or for single ratings:" %}
POST /api/physicians/ratings/import/single/

{% trans "See API documentation for more details." %}

{% trans "View API Docs" %}

{% trans "Quick Tips" %}

  • {% trans "Ensure CSV is exported with UTF-8 encoding" %}
  • {% trans "Verify doctor IDs match PX360 records" %}
  • {% trans "Ratings outside 1-5 range will be skipped" %}
  • {% trans "Duplicate ratings for same patient/doctor are ignored" %}
{% endblock %} {% block extra_js %} {% endblock %}