Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - manual form input changes #293

Closed
wants to merge 5 commits into from
Closed
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
306 changes: 306 additions & 0 deletions backend/pkg/web/handler/testdata/manual_record_create.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,306 @@
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:b4802ec7-3d07-46df-b928-8cf33675292a",
"resource": {
"resourceType": "Patient",
"id": "b4802ec7-3d07-46df-b928-8cf33675292a",
"name": [
{
"family": "Placeholder",
"given": [
"Patient"
]
}
]
}
},
{
"fullUrl": "urn:uuid:4f3bbe93-2d54-4e45-acc1-215a2cfe427e",
"resource": {
"subject": {
"reference": "urn:uuid:b4802ec7-3d07-46df-b928-8cf33675292a"
},
"resourceType": "Condition",
"id": "4f3bbe93-2d54-4e45-acc1-215a2cfe427e",
"code": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/icd-10",
"code": "R09.1",
"display": "Pleurisy"
}
],
"text": "Pleurisy"
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
},
"onsetDateTime": "2023-10-04T07:00:00.000Z",
"abatementDateTime": "2023-10-27T07:00:00.000Z",
"recordedDate": "2023-10-30T20:33:29.307Z",
"note": [
{
"text": "testing condition description"
}
]
}
},
{
"fullUrl": "urn:uuid:27b5733f-994c-4c25-b9fa-785bc4fb6553",
"resource": {
"resourceType": "Encounter",
"id": "27b5733f-994c-4c25-b9fa-785bc4fb6553",
"status": "finished",
"subject": {
"reference": "urn:uuid:b4802ec7-3d07-46df-b928-8cf33675292a"
},
"participant": [
{
"individual": {
"reference": "urn:uuid:02b9d20d-20c5-4c82-a0a8-b2a6bdc6bc84"
}
}
],
"period": {
"start": "2023-10-05T07:00:00.000Z",
"end": "2023-10-11T07:00:00.000Z"
},
"reasonReference": [
{
"reference": "urn:uuid:4f3bbe93-2d54-4e45-acc1-215a2cfe427e"
}
]
}
},
{
"fullUrl": "urn:uuid:741f40d7-6aa2-4388-9764-d66deeec9b55",
"resource": {
"id": "741f40d7-6aa2-4388-9764-d66deeec9b55",
"resourceType": "Binary",
"contentType": "text/plain",
"data": "aGVsbG8gd29ybGQ="
}
},
{
"fullUrl": "urn:uuid:6a7d995e-ab75-4654-97e9-d25e192d6202",
"resource": {
"id": "6a7d995e-ab75-4654-97e9-d25e192d6202",
"resourceType": "DocumentReference",
"status": "current",
"category": [
{
"coding": [
{
"system": "http://loinc.org",
"code": "47046-8"
}
]
}
],
"subject": {
"reference": "urn:uuid:b4802ec7-3d07-46df-b928-8cf33675292a"
},
"content": [
{
"attachment": {
"contentType": "text/plain",
"url": "urn:uuid:741f40d7-6aa2-4388-9764-d66deeec9b55",
"title": "hello world"
}
}
],
"context": [
{
"related": [
{
"reference": "urn:uuid:4f3bbe93-2d54-4e45-acc1-215a2cfe427e"
}
]
}
]
}
},
{
"fullUrl": "urn:uuid:347c6696-b56d-4aa8-a2b4-b3abfa70a3cd",
"resource": {
"resourceType": "Organization",
"id": "347c6696-b56d-4aa8-a2b4-b3abfa70a3cd",
"name": "UCSF",
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1396094272",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NPI"
}
]
}
}
],
"type": [
{
"coding": [
{
"system": "http://nucc.org/provider-taxonomy",
"code": "261QA0600X; 282N00000X",
"display": "Clinic/Center"
}
]
}
],
"address": [
{
"line": [
"1701 DIVISADERO ST",
"STE 480"
],
"city": "SAN FRANCISCO",
"state": "CA",
"postalCode": "94115",
"country": "US"
}
],
"telecom": [
{
"system": "phone",
"value": "(415) 353-9539"
},
{
"system": "fax",
"value": "(415) 353-9539"
},
{
"system": "email",
"value": "ucsftest@example.com"
}
],
"active": true
}
},
{
"fullUrl": "urn:uuid:02b9d20d-20c5-4c82-a0a8-b2a6bdc6bc84",
"resource": {
"resourceType": "Practitioner",
"id": "02b9d20d-20c5-4c82-a0a8-b2a6bdc6bc84",
"name": [
{
"text": "DOC, UNKNOWN"
}
],
"identifier": [
{
"system": "http://hl7.org/fhir/sid/us-npi",
"value": "1851994321",
"type": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "NPI"
}
]
}
}
],
"address": [
{
"line": [
"620 W GRAND AVE",
null
],
"city": "DAYTON",
"state": "OH",
"postalCode": "45406",
"country": "US"
}
],
"telecom": [
{
"system": "phone",
"value": "(610) 555-3578"
},
{
"system": "fax",
"value": "123 456 7891"
},
{
"system": "email",
"value": "test@example.com"
}
],
"active": true,
"qualification": [
{
"code": {
"coding": [
{
"system": "http://nucc.org/provider-taxonomy",
"code": "3747A0650X",
"display": "Technician"
}
]
}
}
]
}
},
{
"fullUrl": "urn:uuid:4a6bd467-3fe7-4cce-847d-c4b675b68394",
"resource": {
"id": "4a6bd467-3fe7-4cce-847d-c4b675b68394",
"resourceType": "MedicationRequest",
"status": "active",
"statusReason": {
"coding": []
},
"intent": "order",
"medicationCodeableConcept": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/rxnorm",
"code": "1187315",
"display": "TYLENOL (Oral Pill)"
}
]
},
"subject": {
"reference": "urn:uuid:b4802ec7-3d07-46df-b928-8cf33675292a"
},
"encounter": {
"reference": "urn:uuid:27b5733f-994c-4c25-b9fa-785bc4fb6553"
},
"authoredOn": "2023-10-05T07:00:00.000Z",
"requester": {
"reference": "urn:uuid:02b9d20d-20c5-4c82-a0a8-b2a6bdc6bc84"
},
"supportingInformation": [],
"reasonReference": [
{
"reference": "urn:uuid:4f3bbe93-2d54-4e45-acc1-215a2cfe427e"
}
],
"note": [
{
"text": "testing medication instructions"
}
],
"dispenseRequest": {
"validityPeriod": {
"start": "2023-10-05T07:00:00.000Z",
"end": "2023-10-11T07:00:00.000Z"
}
}
}
}
]
}
2 changes: 1 addition & 1 deletion frontend/src/app/components/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="container ht-100p pd-t-0-f">
<div class="d-sm-flex justify-content-center justify-content-sm-between py-2 w-100">
<span class="text-muted text-center text-sm-left d-block d-sm-inline-block">Copyright © Fasten 2022 | {{appVersion}}</span>
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center">Open Source personal electronic medical record system. <a href="https://www.fastenhealth.com/" externalLink>It's your health. Own it.</a></span>
<span class="float-none float-sm-right d-block mt-1 mt-sm-0 text-center"><a href="https://www.fastenhealth.com/" externalLink>Fasten Health: Your Journey, Your Data, Your Control</a></span>
</div>
</div><!-- container -->
</div><!-- az-footer -->
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
<div class="container">
<div class="az-content-body pd-lg-l-40 d-flex flex-column">
<div class="az-content-breadcrumb">
<span>Components</span>
<span>Forms</span>
<span>Form Elements</span>
<span>Create Record</span>
<span>Condition</span>
</div>
<h2 class="az-content-title">Create a Record</h2>
<h2 class="az-content-title">Condition Wizard</h2>

<!-- Editor Button -->
<div class="row mt-5 mb-3">
<div class="row">
<div class="col-12">

<div class="alert alert-warning" role="alert">
Expand All @@ -27,7 +26,23 @@ <h2 class="az-content-title">Create a Record</h2>
</div>
</div>

<div class="az-content-label mg-b-5">Condition</div>
<div class="row">
<div class="col-12">
<div class="alert alert-info" role="alert">
<p><strong>Info:</strong> Fasten Health is meant to automatically retrieve your health records from your healthcare providers. However, you might face limitations in these situations:</p>
<ul>
<li>Your healthcare provider isn't supported.</li>
<li>Your records are too old and no longer available in the system.</li>
<li>You want to include extra information related to your medical condition, like imaging results or notes.</li>
</ul>

<p>If any of these apply to you, you can use this form to manually input your records into Fasten.</p>

</div>
</div>
</div>

<div class="az-content-label mg-t-2 mg-b-5">Condition</div>
<p class="mg-b-20">
A condition is a disease, illness, or injury that needs to be managed over time. A condition may be a comorbidity (a co-occurring condition), or it may be a main diagnosis.
</p>
Expand Down Expand Up @@ -456,6 +471,14 @@ <h6 class="card-title">Notes & Attachments</h6>
</div>
</div>

<div *ngIf="!form.valid" class="row">
<div class="col-12">
<ul>
<li *ngFor="let error of errors" class="text-danger">{{error.controlName}} {{error.errorName}} {{error.errorValue}}</li>
</ul>
</div>
</div>

<button class="mg-t-20 mg-b-20 btn btn-az-primary btn-rounded btn-block " type="submit">Submit</button>
</form>

Expand Down
Loading
Loading