-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<meta name="description" content="" /> | ||
<meta name="author" content="" /> | ||
<title>Shop Item - Start Bootstrap Template</title> | ||
<!-- Favicon--> | ||
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" /> | ||
<!-- Bootstrap icons--> | ||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" /> | ||
<!-- Core theme CSS (includes Bootstrap)--> | ||
<link href="https://cdn.jsdelivr.net/gh/StartBootstrap/startbootstrap-shop-item@master/dist/css/styles.css" rel="stylesheet" /> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"> | ||
|
||
</head> | ||
<body x-data="pageRedirectData()" x-init="redirectInit()"> | ||
|
||
<!-- Product section--> | ||
<section class="py-5"> | ||
<div class="container px-4 px-lg-5 my-5"> | ||
<div class="row gx-4 gx-lg-5 align-items-center"> | ||
<div class="col-md-6"><img class="card-img-top mb-5 mb-md-0" src="https://cdn.icon-icons.com/icons2/1508/PNG/512/checkbox_103909.png" alt="..." /></div> | ||
<div class="col-md-6"> | ||
<div class="small mb-1">Acme Health</div> | ||
<h1 class="display-5 fw-bolder">Please wait</h1> | ||
|
||
<p class="lead">Thanks for connecting your medical records. Please wait while we process your records</p> | ||
<div class="d-flex"> | ||
<button @click="showBackendCode = !showBackendCode" class="btn btn-outline-dark flex-shrink-0" type="button"> | ||
<i class="bi-terminal-fill me-1"></i> | ||
View Backend Code | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- Related items section--> | ||
<section x-show="showBackendCode" class="py-5 bg-light"> | ||
|
||
|
||
<div class="container px-4 px-lg-5 mt-5"> | ||
<h2 class="fw-bolder mb-4">Backend Code (Running Server Side)</h2> | ||
<div class="row"> | ||
<div class="col"> | ||
|
||
|
||
<div class="accordion" id="accordionExample"> | ||
<div class="card"> | ||
<div class="card-header" id="headingOne"> | ||
<h2> | ||
Step 1: Parse Querystring Parameters | ||
</h2> | ||
</div> | ||
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample"> | ||
<div class="card-body"> | ||
<p>Extract and process the <strong><i>org_connection_id</i></strong> query string parameter in the URL.</p> | ||
<pre><code x-text="JSON.stringify(queryParams)" class="language-json"></code></pre> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header" id="headingTwo"> | ||
<h2> | ||
Step 2: Fetch Medical Records | ||
</h2> | ||
</div> | ||
<div id="collapseTwo" class="collapse show" aria-labelledby="headingTwo" data-parent="#accordionExample"> | ||
<div class="card-body"> | ||
<p>Make a request to the Fasten Connect API, triggering the collection of the patient's medical records (identified using the <strong><i>org_connection_id</i></strong>) | ||
<br/> | ||
Note: You must use your API credentials to authenticate the request. Replace the placeholders with your actual credentials. | ||
These credentials are available in your Fasten Health account dashboard. | ||
</p> | ||
<pre><code class="language-bash"> | ||
|
||
curl -u 'public_test_123456324234234':'private_test_9u2orj....sd02lk3)i03423' \ | ||
-X POST \ | ||
--data '{"org_connection_id":"<span x-text="queryParams['org_connection_id']"></span>"}' \ | ||
https://api.connect.fastenhealth.com/v1/bridge/fhir/ehi-export | ||
|
||
</code></pre> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<div class="card-header" id="headingThree"> | ||
<h2> | ||
Step 3: Wait for Webhook Notification | ||
</h2> | ||
</div> | ||
<div id="collapseThree" class="collapse show" aria-labelledby="headingThree" data-parent="#accordionExample"> | ||
<div class="card-body"> | ||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
<!-- Footer--> | ||
<footer class="py-5 bg-dark"> | ||
<div class="container"><p class="m-0 text-center text-white">Copyright © Fasten Health, Inc.</p></div> | ||
</footer> | ||
<!-- Bootstrap core JS--> | ||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script> | ||
|
||
<script type="module"> | ||
import alpinejs from 'https://cdn.skypack.dev/alpinejs@v3.13.4'; | ||
alpinejs.data('pageRedirectData', pageRedirectData); | ||
alpinejs.start(); | ||
|
||
export function pageRedirectData(){ | ||
return { | ||
showBackendCode: false, | ||
queryParams: Object.fromEntries(new URLSearchParams(window.location.search)), | ||
|
||
redirectInit(){ | ||
|
||
} | ||
|
||
} | ||
} | ||
|
||
</script> | ||
</body> | ||
</html> |