-
Notifications
You must be signed in to change notification settings - Fork 1
/
MedSecure Verify
28 lines (27 loc) · 1.02 KB
/
MedSecure Verify
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- transaction-interface.html -->
<form>
<label>Patient Information:</label>
<input type="text" id="patient-name" />
<br />
<label>Billing Details:</label>
<input type="text" id="billing-details" />
<br />
<label>Insurance Claims:</label>
<input type="text" id="insurance-claims" />
<br />
<button id="submit-transaction">Submit Transaction</button>
</form>
<script>
const submitTransactionButton = document.getElementById('submit-transaction');
submitTransactionButton.addEventListener('click', async () => {
const patientName = document.getElementById('patient-name').value;
const billingDetails = document.getElementById('billing-details').value;
const insuranceClaims = document.getElementById('insurance-claims').value;
// Call API to submit transaction
await fetch('/submit-transaction', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ patientName, billingDetails, insuranceClaims }),
});
});
</script>