This file contains hidden or 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
| #!/usr/bin/env bun | |
| // Uploads ViewDefinition resources from initBundle.json into a FHIR server, | |
| // then invokes $materialize on each uploaded ViewDefinition. | |
| // | |
| // Usage: | |
| // FHIR_BASE_URL=http://localhost:8080 CLIENT_ID=root CLIENT_SECRET=secret bun run upload-view-definitions.ts [path/to/bundle.json] | |
| const baseUrl = (process.env.FHIR_BASE_URL ?? "http://localhost:8080").replace(/\/$/, ""); | |
| const clientId = process.env.CLIENT_ID; | |
| const clientSecret = process.env.CLIENT_SECRET; |
This file contains hidden or 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
| function compile<SRC extends Resource,DST = any>(expression:string){ | |
| const path = fhirpath.compile(expression); | |
| return (s:SRC) => path(s) as Array<DST>; | |
| } | |
| const vmoName = compile<Appointment,string>("Appointment.participant.where('22232009' in type.coding.code).actor.display"); | |
| const vmoStaus = compile<Appointment,string>("Appointment.participant.where('22232009' in type.coding.code).status"); | |
| ... | |
| const columns =[ |
This file contains hidden or 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
| import { ColumnType } from 'antd/es/table'; | |
| import { Text } from '@beda.software/emr/components'; | |
| import { Appointment, ServiceRequest } from 'fhir/r4b'; | |
| import fhirpath from 'fhirpath'; | |
| import { AsJson } from '../../components/AsJson'; | |
| import { TableData } from './types'; | |
| import { WasUpdated } from '../../components/WasUpdated'; | |
| import { Status } from '../../components/Status'; | |
| export const appointmentStatuses = [ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| { | |
| "item": [ | |
| { | |
| "answer": [ | |
| { | |
| "valueString": "Beda" | |
| } | |
| ], | |
| "linkId": "last-name" | |
| }, |
This file contains hidden or 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
| { | |
| "questionnaire": "allergies", | |
| "meta": { | |
| "lastUpdated": "2023-06-06T12:03:29.171353Z", | |
| "versionId": "664", | |
| "extension": [ | |
| { | |
| "url": "ex:createdAt", | |
| "valueInstant": "2023-06-06T12:03:29.171353Z" | |
| } |
This file contains hidden or 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
| item: | |
| - text: Diagnostic | |
| linkId: diagnosis-code | |
| - text: Côté diagnostic | |
| linkId: acc-diagnosis-side | |
| answerOption: | |
| - valueCoding: | |
| code: left | |
| system: 'https://www.acc.co.nz' | |
| display: La gauche |
This file contains hidden or 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
| https://docs.google.com/presentation/d/1oejsDvtVuEHWKWAwJn_gHDL7p7zQrxI341fz33xMs24/edit#slide=id.p |
This file contains hidden or 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
| #!/bin/bash | |
| fallocate -l 10G /swapfile | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| apt-get install htop | |
| htop | |
| ## curl https://gist.githubusercontent.com/ir4y/063a8b1912c3ed6ef03bb463cb2fcffa/raw/8eff8079c3853a11534dfa94fb26acc72ccb12e1/add_swap.sh | bash |
This file contains hidden or 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
| var responseFromGoogle = axios.get(googleBooksUrl); | |
| var responseFromCrossRef = = axios.get(crossRefUrl); | |
| Promise.all([responseFromGoogle, responseFromCrossRef]).then(function(responses){ | |
| var googleData = cleanGoogleBooks(responses[2]); | |
| var crossRefData = cleanCrossRef(responses[1]); | |
| response.send({google: googleData, crossRef: crossRefData}); | |
| }); |
NewerOlder