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

{% trans "Fetch Doctor Ratings from HIS" %}

{% trans "Fetch doctor ratings directly from HIS API by date range" %}

{% trans "How It Works" %}

{% trans "Fetch Process:" %}

{% trans "Ratings are fetched from the HIS FetchDoctorRatingMAPI endpoint for the selected date range." %}

  • {% trans "Select a date range and submit" %}
  • {% trans "A background job fetches and processes ratings" %}
  • {% trans "Track progress on the job status page" %}

{% trans "HIS Response Fields:" %}

  • DoctorID / DoctorName
  • HospitalName - {% trans "Matched to PX360 hospital" %}
  • Rating - {% trans "1-5 rating value" %}
  • RatingDate, Department - {% trans "Optional" %}

{% trans "Select Date Range" %}

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

{% trans "Start date for fetching ratings" %}

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

{% trans "End date for fetching ratings" %}

{% if form.non_field_errors %}
{% for error in form.non_field_errors %}

{{ error }}

{% endfor %}
{% endif %}
{% trans "Cancel" %}

{% trans "About HIS Fetch" %}

{% trans "This fetches ratings directly from the HIS system via the FetchDoctorRatingMAPI API endpoint." %}

{% trans "# HIS API Endpoint" %}
GET ?FromDate=...&ToDate=...

{% trans "The monthly scheduled task uses the same process." %}

{% trans "Quick Tips" %}

  • {% trans "Use narrow date ranges for faster results" %}
  • {% trans "Hospitals are matched by name from HIS data" %}
  • {% trans "Duplicate ratings for same doctor/date are skipped" %}
  • {% trans "Job runs in background — you can leave the page" %}
{% endblock %} {% block extra_js %} {% endblock %}