{% extends "base.html" %} {% block head %} {# include 'autocomplete_light/static.html' #} {% endblock %} {% block title %} Treatment Form {% endblock %} {% block content %} {% if object %} {{object.patient}} {{object.patient.medical_records}}

Update treatment

{% else %} {{patient}} {{patient.medical_records}}

Create treatment

{% endif %} {% if form.errors %} Please correct the following error{{ form.errors|pluralize }}: {% endif %}
{% csrf_token %}

{{form.patient.label_tag}}{{form.patient.errors}}

{{form.bed.label_tag}}{{form.bed}}{{form.bed.errors}}

{% comment %}

{{form.icd9.label_tag}}{{form.icd9}}{{form.icd9.errors}}

{{form.icd9.label_tag}}{{form.icd9.errors}}

{{form.icd9.label_tag}}

{{form.icd9.errors}}

SELECT icd10cm_id, COUNT(*) FROM ck_treatment GROUP BY icd10cm_id ORDER BY COUNT(*) DESC {% endcomment %}
{%if nhiorders %} {% for nhiorder in nhiorders %} {% endfor %}
送案日期 疾病分類號 其他診斷 申請原因 核定結果
{{nhiorder.PackageTime}} {{nhiorder.Diagnosis}} {{nhiorder.other_diagnosis}} {{nhiorder.Reason}} {{nhiorder.Quantity}}
{% endif %}

{{form.icd10cm.label_tag}}{{form.icd10cm}}{{form.icd10cm.errors}}

{% for icd10 in topicd10|slice:"0:5" %} {% endfor %}
{{icd10.ICD10CM_Chinese}} {{icd10.ICD9CM_Chinese}}

{{form.other_diagnosis.label_tag}}{{form.other_diagnosis}}{{form.other_diagnosis.errors}}

{{form.tracking_mode.label_tag}}{{form.tracking_mode}}{{form.tracking_mode.errors}}

{{form.referral.label_tag}}{{form.referral}}{{form.referral.errors}}

{{form.oncologist.label_tag}}{{form.oncologist}}{{form.oncologist.errors}}

{{form.surgeon.label_tag}}{{form.surgeon}}{{form.surgeon.errors}}

{{form.date_started.label_tag}}{{form.date_started}}{{form.date_started.errors}}

{{form.date_completed.label_tag}}{{form.date_completed}}{{form.date_completed.errors}}

{{form.accounting.label_tag}}{{form.accounting}}{{form.accounting.errors}}

{{form.karnofsky_score.label_tag}}{{form.karnofsky_score}}{{form.karnofsky_score.errors}}

{{form.disease_stage.label_tag}}{{form.disease_stage}}{{form.disease_stage.errors}}

{{form.primary_tumor_site.label_tag}}{{form.primary_tumor_site}}{{form.primary_tumor_site.errors}}

{{form.input.label_tag}}{{form.input}}{{form.input.errors}}

{{form.output.label_tag}}{{form.output}}{{form.output.errors}}

{{form.complications.label_tag}}{{form.complications}}{{form.complications.errors}}

{{form.chief_complaint.label_tag}}{{form.chief_complaint}}{{form.chief_complaint.errors}}

{{form.memo.label_tag}}{{form.memo}}{{form.memo.errors}}

{% if object %} Return to patient {% else %} Return to patient {% endif %} {% endblock %} {% block footer %} {{ form.media }} {% endblock %}