Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '.'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
59 changes: 57 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,57 @@
# xray
Generate DOZ3 reports
# X-Ray - DOZ3 Report Generator

Веб-приложение для генерации отчетов ДОЗ-3 (регистрация доз облучения пациентов при рентгенологических исследованиях).

## 🌐 GitHub Pages

Приложение доступно онлайн: [https://graphsaf.github.io/xray/](https://graphsaf.github.io/xray/)

## 📋 Описание

X-Ray - это простое и удобное веб-приложение для создания отчетов ДОЗ-3, которое позволяет:

- Заполнять данные пациента и обследования
- Генерировать форматированные отчеты
- Сохранять отчеты в формате HTML
- Печатать отчеты

## 🚀 Использование

### Онлайн версия
Просто откройте [https://graphsaf.github.io/xray/](https://graphsaf.github.io/xray/) в браузере.

### Локальная версия
1. Клонируйте репозиторий:
```bash
git clone https://github.com/GraphSaf/xray.git
cd xray
```

2. Откройте `index.html` в браузере

Приложение не требует установки дополнительных зависимостей - это статический HTML/CSS/JS сайт.

## 📁 Структура проекта

- `index.html` - главная страница приложения
- `styles.css` - стили приложения
- `script.js` - логика работы приложения
- `ТЗ ДОЗ 3.pdf` - техническое задание

## 🔧 Возможности

- ✅ Заполнение данных пациента
- ✅ Выбор типа обследования (флюорография, рентгенография, КТ, маммография)
- ✅ Ввод дозы облучения
- ✅ Генерация отчета
- ✅ Скачивание отчета в HTML
- ✅ Печать отчета
- ✅ Адаптивный дизайн для мобильных устройств

## 📄 Лицензия

MIT License

## 👤 Автор

GraphSaf
106 changes: 106 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>X-Ray - DOZ3 Report Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<header>
<h1>X-Ray DOZ3 Report Generator</h1>
<p class="subtitle">Генератор отчетов ДОЗ-3</p>
</header>

<main>
<section class="form-section">
<h2>Создание отчета</h2>

<form id="reportForm">
<div class="form-group">
<label for="patientName">ФИО пациента:</label>
<input type="text" id="patientName" name="patientName" required>
</div>

<div class="form-group">
<label for="patientId">Номер пациента:</label>
<input type="text" id="patientId" name="patientId" required>
</div>

<div class="form-group">
<label for="examDate">Дата обследования:</label>
<input type="date" id="examDate" name="examDate" required>
</div>

<div class="form-group">
<label for="examType">Тип обследования:</label>
<select id="examType" name="examType" required>
<option value="">Выберите тип</option>
<option value="fluorography">Флюорография</option>
<option value="radiography">Рентгенография</option>
<option value="ct">Компьютерная томография</option>
<option value="mammography">Маммография</option>
</select>
</div>

<div class="form-group">
<label for="dose">Доза облучения (мЗв):</label>
<input type="number" id="dose" name="dose" step="0.01" min="0" required>
</div>

<div class="form-group">
<label for="bodyPart">Область обследования:</label>
<input type="text" id="bodyPart" name="bodyPart" required>
</div>

<div class="form-group">
<label for="doctor">Врач:</label>
<input type="text" id="doctor" name="doctor" required>
</div>

<div class="form-group">
<label for="notes">Примечания:</label>
<textarea id="notes" name="notes" rows="4"></textarea>
</div>

<button type="submit" class="btn btn-primary">Создать отчет</button>
<button type="button" class="btn btn-secondary" id="clearForm">Очистить</button>
</form>
</section>

<section class="report-section" id="reportSection" style="display: none;">
<h2>Сгенерированный отчет</h2>
<div id="reportContent" class="report-content"></div>
<div class="report-actions">
<button class="btn btn-primary" id="downloadBtn">Скачать HTML</button>
<button class="btn btn-secondary" id="printBtn">Печать</button>
<button class="btn btn-secondary" id="newReportBtn">Новый отчет</button>
</div>
</section>

<section class="info-section">
<h2>Информация о ДОЗ-3</h2>
<p>Форма ДОЗ-3 используется для регистрации и учета доз облучения пациентов при рентгенологических исследованиях.</p>
<p>Основные параметры:</p>
<ul>
<li>Данные пациента</li>
<li>Тип и дата исследования</li>
<li>Полученная доза облучения</li>
<li>Область исследования</li>
<li>Ответственный медицинский персонал</li>
</ul>
<div class="documentation">
<a href="ТЗ ДОЗ 3.pdf" target="_blank" class="btn btn-link">Техническое задание (PDF)</a>
</div>
</section>
</main>

<footer>
<p>&copy; 2025 X-Ray DOZ3 Report Generator</p>
</footer>
</div>

<script src="script.js"></script>
</body>
</html>
Loading