Repository Analysis

medplum/medplum

Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications.

2.5 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of medplum/medplum, a TypeScript project with 2,526 GitHub stars. SynthScan v2.0 examined 876,343 lines of code across 3667 source files, recording 1404 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 2.5 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
2.5K
Stars
TypeScript
Language
876.3K
Lines of Code
3.7K
Files
1.4K
Pattern Hits
2026-07-14
Scan Date
0.04
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 135MEDIUM 57LOW 1212

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1404 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers615 hits · 632 pts
SeverityFileLineSnippetContext
LOW…edplum-healthie-importer/src/list-healthie-patients.ts115async function fetchAllPatientsWithCursor(CODE
LOW…althie-importer/src/healthie/questionnaire-response.ts75export async function fetchHealthieFormAnswerGroups(CODE
LOW…althie-importer/src/healthie/questionnaire-response.ts125export function convertHealthieFormAnswerGroupToFhir(CODE
LOW…althie-importer/src/healthie/questionnaire-response.ts188export function convertHealthieTimestampToIso(healthieTimestamp: string): string {CODE
LOW…althie-importer/src/healthie/questionnaire-response.ts221function convertHealthieAnswerGroupToFhirItem(answers: HealthieFormAnswer[]): QuestionnaireResponseItem | undefined {CODE
LOW…althie-importer/src/healthie/questionnaire-response.ts265function convertHealthieAnswerValueToFhir(answer: HealthieFormAnswer): QuestionnaireResponseItemAnswer[] {CODE
LOW…um-healthie-importer/src/healthie/clinical-activity.ts13export async function fetchMostRecentMedicationDate(CODE
LOW…um-healthie-importer/src/healthie/clinical-activity.ts57export async function fetchMostRecentAllergyDate(CODE
LOW…um-healthie-importer/src/healthie/clinical-activity.ts95export async function fetchMostRecentFormAnswerGroupDate(CODE
LOW…um-healthie-importer/src/healthie/clinical-activity.ts141export async function fetchLatestClinicalUpdate(CODE
LOW…les/medplum-healthie-importer/src/healthie/document.ts124export function convertHealthieDocumentToFhir(CODE
LOW…s/medplum-healthie-importer/src/healthie/medication.ts96export function convertHealthieMedicationToFhir(CODE
LOW…les/medplum-healthie-importer/src/healthie/coverage.ts115export function convertHealthiePolicyToFhir(policy: HealthiePolicy, patientReference: Reference<Patient>): Coverage {CODE
LOW…ples/medplum-healthie-importer/src/healthie/patient.ts124export async function fetchHealthiePatientIdsPage(CODE
LOW…ples/medplum-healthie-importer/src/healthie/patient.ts227export function convertHealthiePatientToFhir(healthiePatient: HealthiePatient): Patient {CODE
LOW…les/medplum-healthie-importer/src/healthie/provider.ts93export function convertHealthieProviderToPractitioner(provider: HealthieProvider): Practitioner {CODE
LOW…les/medplum-healthie-importer/src/healthie/provider.ts120export function convertHealthieProviderToPractitionerRole(CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts45export async function fetchAllergySensitivities(CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts87export function convertHealthieAllergyToFhir(CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts165export function mapHealthieStatusToClinicalStatus(status?: string): 'active' | 'inactive' | 'resolved' {CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts187export function mapHealthieCategoryToType(category: string): AllergyIntolerance['type'] {CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts206export function mapHealthieCategoryTypeToCategory(CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts232export function mapHealthieSeverityToCriticality(severity?: string): AllergyIntolerance['criticality'] {CODE
LOW…ples/medplum-healthie-importer/src/healthie/allergy.ts255export function mapHealthieSeverityToReactionSeverity(severity?: string): 'mild' | 'moderate' | 'severe' | undefined {CODE
LOWexamples/medplum-task-demo/src/pages/UploadDataPage.tsx163async function uploadExampleQualifications(medplum: MedplumClient, profile: Practitioner): Promise<void> {CODE
LOW…um-websocket-subscriptions-demo/src/pages/HomePage.tsx152 async function createMessageForAnotherPatient(): Promise<void> {CODE
LOWexamples/medplum-provider/src/utils/chargeitems.ts13export async function applyChargeItemDefinition(CODE
LOWexamples/medplum-provider/src/utils/chargeitems.ts44export async function getChargeItemsForEncounter(CODE
LOW…les/medplum-provider/src/utils/communication-search.ts20export function normalizeCommunicationSearch({CODE
LOW…ples/medplum-provider/src/utils/spaceMessaging.test.ts13function createMockStreamingResponse(chunks: string[]): Response {CODE
LOW…ples/medplum-provider/src/utils/spaceMessaging.test.ts37function createMockBufferedResponse(content: string): Response {CODE
LOW…amples/medplum-provider/src/utils/documentReference.ts14export async function fetchLabOrderRequisitionDocuments(CODE
LOW…amples/medplum-provider/src/utils/documentReference.ts44export async function resolvePresentedFormAttachments(CODE
LOW…amples/medplum-provider/src/utils/documentReference.ts77export function getHealthGorillaRequisitionId(serviceRequest: ServiceRequest): string | undefined {CODE
LOWexamples/medplum-provider/src/utils/spacePersistence.ts73function buildMessageCommunication(topicId: string, message: Message, sequenceNumber: number): Communication {CODE
LOWexamples/medplum-provider/src/utils/encounter.ts122async function createChargeItemFromPlanDefinition(CODE
LOWexamples/medplum-provider/src/utils/encounter.ts168async function handleChargeItemsFromTasks(CODE
LOWexamples/medplum-provider/src/utils/encounter.ts202async function createChargeItemFromServiceRequest(CODE
LOWexamples/medplum-provider/src/utils/intake-utils.ts808function getRelatedPersonRelationshipFromCoverage(coverageRelationship: Coding): Coding | undefined {CODE
LOWexamples/medplum-provider/src/utils/servicetype.ts14export function extractReferencesFromCodeableReferenceLike(CODE
LOWexamples/medplum-provider/src/utils/servicetype.ts33export function isCodeableReferenceLikeTo(CODE
LOW…der/src/components/ResourceFormWithRequiredProfile.tsx20export function ResourceFormWithRequiredProfile(props: ResourceFormWithRequiredProfileProps): JSX.Element {CODE
LOW…provider/src/components/labs/LabResultDetails.test.tsx12function createMockDiagnosticReport(overrides?: Partial<DiagnosticReport>): DiagnosticReport {CODE
LOW…r/src/components/pharmacy/ScriptSurePharmacyDialog.tsx32function ScriptSureSpecialtyFilters({ value, onChange }: ScriptSureSpecialtyFiltersProps): JSX.Element {CODE
LOW…um-provider/src/components/spaces/SpacesInbox.test.tsx34function createMockStreamingResponse(content: string): Response {CODE
LOW…onents/encounter/EncounterCoverageEligibilityModal.tsx46export function EncounterCoverageEligibilityModal(props: EncounterCoverageEligibilityModalProps): JSX.Element {CODE
LOW…um-provider/src/components/meds/quantity-qualifiers.ts43export function getQuantityQualifierLabel(code: string | undefined): string | undefined {CODE
LOW…um-provider/src/components/meds/quantity-qualifiers.ts241export function inferQuantityQualifierCode(...textParts: (string | undefined)[]): string | undefined {CODE
LOW…um-provider/src/components/meds/quantity-qualifiers.ts254export function inferQuantityQualifierCodeWith(CODE
LOW…um-provider/src/components/meds/quantity-qualifiers.ts270export function mergeQuantityQualifierCatalog(CODE
LOW…vider/src/components/meds/MedicationRequestDetails.tsx31function formatQuantityWithQualifier(quantity: Quantity | undefined): string {CODE
LOW…vider/src/components/meds/MedicationRequestDetails.tsx357function getQuantityQualifierTooltip(rawQualifier: string | undefined): string | undefined {CODE
LOW…vider/src/components/meds/MedicationRequestDetails.tsx371function formatSubstitutionAllowed(allowed: boolean | undefined): string {CODE
LOW…ovider/src/components/meds/PrescriptionIFrameModal.tsx34function medicationRequestLooksSynced(mr: MedicationRequest): boolean {CODE
LOW…-provider/src/hooks/useMedicationRequestSyncPolling.ts51export function useMedicationRequestSyncPolling(CODE
LOW…amples/medplum-provider/src/hooks/useDoseSpotAccess.ts64function hasDoseSpotPractitionerRole(roles: PractitionerRole[]): boolean {CODE
LOW…ples/medplum-provider/src/pages/labs/OrderLabsPage.tsx44async function sendLabOrderToHealthGorilla(medplum: MedplumClient, labOrder: ServiceRequest): Promise<void> {CODE
LOW…rovider/src/pages/smart/SmartHealthLinkImport.utils.ts26export function getSmartHealthLinkPatient(bundle: Bundle): Patient | undefined {CODE
LOW…rovider/src/pages/smart/SmartHealthLinkImport.utils.ts30export function getSmartHealthLinkBundleEntryKey(entry: BundleEntry): string | undefined {CODE
LOW…rovider/src/pages/smart/SmartHealthLinkImport.utils.ts34export function buildSmartHealthLinkImportBundle(CODE
555 more matches not shown…
Cross-Language Confusion (JS/TS)130 hits · 581 pts
SeverityFileLineSnippetContext
HIGHpackages/cli/src/aws/init.ts26 print('This tool prepares the necessary prerequisites for deploying Medplum in your AWS account.');CODE
HIGHpackages/cli/src/aws/init.ts27 print('');CODE
HIGHpackages/cli/src/aws/init.ts28 print('Most Medplum infrastructure is deployed using the AWS CDK.');CODE
HIGHpackages/cli/src/aws/init.ts29 print('However, some AWS resources must be created manually, such as email addresses and SSL certificates.');CODE
HIGHpackages/cli/src/aws/init.ts30 print('This tool will help you create those resources.');CODE
HIGHpackages/cli/src/aws/init.ts31 print('');CODE
HIGHpackages/cli/src/aws/init.ts32 print('Upon completion, this tool will:');CODE
HIGHpackages/cli/src/aws/init.ts33 print(' 1. Generate a Medplum CDK config file (i.e., medplum.demo.config.json)');CODE
HIGHpackages/cli/src/aws/init.ts34 print(' 2. Optionally generate an AWS CloudFront signing key');CODE
HIGHpackages/cli/src/aws/init.ts35 print(' 3. Optionally request SSL certificates from AWS Certificate Manager');CODE
HIGHpackages/cli/src/aws/init.ts36 print(' 4. Optionally write server config settings to AWS Parameter Store');CODE
HIGHpackages/cli/src/aws/init.ts37 print('');CODE
HIGHpackages/cli/src/aws/init.ts38 print('The Medplum infra config file is an input to the Medplum CDK.');CODE
HIGHpackages/cli/src/aws/init.ts39 print('The Medplum CDK will create and manage the necessary AWS resources.');CODE
HIGHpackages/cli/src/aws/init.ts40 print('');CODE
HIGHpackages/cli/src/aws/init.ts41 print('We will ask a series of questions to generate your infra config file.');CODE
HIGHpackages/cli/src/aws/init.ts42 print('Some questions have predefined options in [square brackets].');CODE
HIGHpackages/cli/src/aws/init.ts43 print('Some questions have default values in (parentheses), which you can accept by pressing Enter.');CODE
HIGHpackages/cli/src/aws/init.ts44 print('Press Ctrl+C at any time to exit.');CODE
HIGHpackages/cli/src/aws/init.ts48 print('It appears that you do not have AWS credentials configured.');CODE
HIGHpackages/cli/src/aws/init.ts49 print('AWS credentials are not strictly required, but will enable some additional features.');CODE
HIGHpackages/cli/src/aws/init.ts50 print('If you intend to use AWS credentials, please configure them now.');CODE
HIGHpackages/cli/src/aws/init.ts55 print('Medplum deployments have a short environment name such as "prod", "staging", "alice", or "demo".');CODE
HIGHpackages/cli/src/aws/init.ts56 print('The environment name is used in multiple places:');CODE
HIGHpackages/cli/src/aws/init.ts57 print(' 1. As part of config file names (i.e., medplum.demo.config.json)');CODE
HIGHpackages/cli/src/aws/init.ts58 print(' 2. As the base of CloudFormation stack names (i.e., MedplumDemo)');CODE
HIGHpackages/cli/src/aws/init.ts59 print(' 3. AWS Parameter Store keys (i.e., /medplum/demo/...)');CODE
HIGHpackages/cli/src/aws/init.ts61 print('Using environment name "' + config.name + '"...');CODE
HIGHpackages/cli/src/aws/init.ts64 print('Medplum Infrastructure will create a config file in the current directory.');CODE
HIGHpackages/cli/src/aws/init.ts67 print('Config file already exists.');CODE
HIGHpackages/cli/src/aws/init.ts70 print('Using config file "' + configFileName + '"...');CODE
HIGHpackages/cli/src/aws/init.ts74 print('Most Medplum resources will be created in a single AWS region.');CODE
HIGHpackages/cli/src/aws/init.ts79 print('Medplum Infrastructure will use your AWS account number to create AWS resources.');CODE
HIGHpackages/cli/src/aws/init.ts81 print('Using the AWS CLI, your current account ID is: ' + currentAccountId);CODE
HIGHpackages/cli/src/aws/init.ts87 print('Medplum will create a CloudFormation stack to manage AWS resources.');CODE
HIGHpackages/cli/src/aws/init.ts88 print('AWS CloudFormation stack names ');CODE
HIGHpackages/cli/src/aws/init.ts94 print('Please enter the base domain name for your Medplum deployment.');CODE
HIGHpackages/cli/src/aws/init.ts95 print('');CODE
HIGHpackages/cli/src/aws/init.ts96 print('Medplum deploys multiple subdomains for various services.');CODE
HIGHpackages/cli/src/aws/init.ts97 print('');CODE
HIGHpackages/cli/src/aws/init.ts98 print('For example, "api." for the REST API and "app." for the web application.');CODE
HIGHpackages/cli/src/aws/init.ts99 print('The base domain name is the common suffix for all subdomains.');CODE
HIGHpackages/cli/src/aws/init.ts100 print('');CODE
HIGHpackages/cli/src/aws/init.ts101 print('For example, if your base domain name is "example.com",');CODE
HIGHpackages/cli/src/aws/init.ts102 print('then the REST API will be "api.example.com".');CODE
HIGHpackages/cli/src/aws/init.ts103 print('');CODE
HIGHpackages/cli/src/aws/init.ts104 print('The base domain should include the TLD (i.e., ".com", ".org", ".net").');CODE
HIGHpackages/cli/src/aws/init.ts105 print('');CODE
HIGHpackages/cli/src/aws/init.ts106 print('Note that you must own the base domain, and it must use Route53 DNS.');CODE
HIGHpackages/cli/src/aws/init.ts113 print('Medplum sends transactional emails to users.');CODE
HIGHpackages/cli/src/aws/init.ts114 print('For example, emails to new users or for password reset.');CODE
HIGHpackages/cli/src/aws/init.ts115 print('Medplum will use the support email address to send these emails.');CODE
HIGHpackages/cli/src/aws/init.ts116 print('Note that you must verify the support email address in SES.');CODE
HIGHpackages/cli/src/aws/init.ts120 print('Medplum deploys a REST API for the backend services.');CODE
HIGHpackages/cli/src/aws/init.ts126 print('Medplum deploys a web application for the user interface.');CODE
HIGHpackages/cli/src/aws/init.ts131 print('Medplum deploys a storage service for file uploads.');CODE
HIGHpackages/cli/src/aws/init.ts136 print('Medplum uses an S3 bucket to store binary content such as file uploads.');CODE
HIGHpackages/cli/src/aws/init.ts137 print('Medplum will create a the S3 bucket as part of the CloudFormation stack.');CODE
HIGHpackages/cli/src/aws/init.ts142 print('Medplum API servers can be deployed in multiple availability zones.');CODE
HIGHpackages/cli/src/aws/init.ts143 print('This provides redundancy and high availability.');CODE
70 more matches not shown…
Fake / Example Data256 hits · 274 pts
SeverityFileLineSnippetContext
LOW…edplum-healthie-importer/src/healthie/provider.test.ts36 phone_number: '555-0100',CODE
LOW…edplum-healthie-importer/src/healthie/provider.test.ts111 expect(result.telecom?.[0]).toEqual({ system: 'phone', value: '555-0100' });CODE
LOW…edplum-healthie-importer/src/healthie/provider.test.ts137 const provider: HealthieProvider = { id: 'prov-4', email: 'test@test.com' };CODE
LOW…edplum-healthie-importer/src/healthie/provider.test.ts145 const provider: HealthieProvider = { id: 'prov-5', phone_number: '555-0000' };CODE
LOW…plum-healthie-importer/src/healthie/medication.test.ts164 const result = convertHealthieMedicationToFhir(medicationWithoutDosage, { display: 'John Doe' });CODE
LOW…plum-healthie-importer/src/healthie/medication.test.ts175 const result = convertHealthieMedicationToFhir(medicationWithoutComment, { display: 'John Doe' });CODE
LOW…plum-healthie-importer/src/healthie/medication.test.ts186 const result = convertHealthieMedicationToFhir(medicationWithoutCode, { display: 'John Doe' });CODE
LOW…plum-healthie-importer/src/healthie/medication.test.ts197 const result = convertHealthieMedicationToFhir(medicationWithoutName, { display: 'John Doe' });CODE
LOW…plum-healthie-importer/src/healthie/medication.test.ts209 const result = convertHealthieMedicationToFhir(medicationWithInvalidDosage, { display: 'John Doe' });CODE
LOW…edplum-healthie-importer/src/healthie/coverage.test.ts125 expect(result.subscriber).toEqual({ display: 'John Doe' });CODE
LOW…medplum-healthie-importer/src/healthie/patient.test.ts52 name: 'John Doe',CODE
LOW…medplum-healthie-importer/src/healthie/patient.test.ts60 line1: '123 Main St',CODE
LOWexamples/medplum-provider/src/utils/intake-form.test.ts11 phone: { valueString: '555-5555' },CODE
LOW…ples/medplum-provider/src/components/Calendar.test.tsx24 display: 'John Doe',CODE
LOW…-provider/src/components/labs/LabOrderDetails.test.tsx60 display: 'John Doe',CODE
LOW…-provider/src/components/labs/LabOrderDetails.test.tsx454 expect(screen.getByText('John Doe')).toBeInTheDocument();CODE
LOW…er/src/components/schedule/AppointmentDetails.test.tsx337 actor: { reference: `Patient/${patientId}`, display: 'Jane Doe' },CODE
LOW…er/src/components/schedule/AppointmentDetails.test.tsx373 expect(screen.getByText('Jane Doe')).toBeInTheDocument();CODE
LOW…rovider/src/components/tasks/TaskDetailsModal.test.tsx76 expect(screen.getByText('John Doe')).toBeInTheDocument();CODE
LOW…-provider/src/components/tasks/TaskProperties.test.tsx171 owner: { reference: 'Practitioner/prac-123', display: 'John Doe' },CODE
LOW…-provider/src/components/tasks/TaskProperties.test.tsx177 expect(screen.getByText('John Doe')).toBeInTheDocument();CODE
LOWexamples/medplum-provider/src/pages/SignInPage.test.tsx73 fireEvent.change(screen.getByLabelText('Email *'), { target: { value: 'admin@example.com' } });CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx557 participant: [{ actor: { reference: 'Patient/patient-1', display: 'Jane Doe' }, status: 'accepted' }],CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx581 await waitFor(() => expect(screen.getByText('Jane Doe')).toBeInTheDocument());CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx583 await user.click(screen.getByText('Jane Doe'));CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx603 await waitFor(() => expect(screen.queryByText('Jane Doe')).not.toBeInTheDocument());CODE
LOW…um-demo-bots/src/resource-usage/resource-usage.test.ts38 expect(emailArgs.to).toEqual(['admin@example.com', 'admin2@example.com']);CODE
LOW…medplum-demo-bots/src/resource-usage/resource-usage.ts8const REPORT_EMAILS = ['admin@example.com', 'admin2@example.com'];CODE
LOWexamples/medplum-demo-bots/src/resource-usage/README.md33const REPORT_EMAIL = 'admin@example.com';CODE
LOW…mples/medplum-demo-bots/src/vital/order-create.test.ts479 value: 'test@test.com',CODE
LOW…mples/medplum-demo-bots/src/vital/order-create.test.ts521 value: 'test@test.com',CODE
LOW…mples/medplum-demo-bots/src/vital/order-result.test.ts202 line: ['123 Main St'],CODE
LOW…demo-bots/src/lab-integration/send-oru-message.test.ts64 line: ['123 Main Street'],CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts52 name: { first: 'John', last: 'Doe', full: 'Jane Doe' },CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts55 phone: '555-1234',CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts150 phone: '555-1234',CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts153 street1: '123 Main St',CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts170 { system: 'phone', value: '555-1234' },CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts175 line: ['123 Main St'],CODE
LOW…-integration/src/bots/sync-patient-from-photon.test.ts260 street1: '123 Main Street',CODE
LOW…ntegration/src/bots/test-data/order-event-test-data.ts301 street1: '123 Main St',CODE
LOWexamples/foomedical/src/pages/HomePage.tsx39 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOWexamples/foomedical/src/pages/HomePage.tsx47 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOWexamples/foomedical/src/pages/HomePage.tsx55 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOWexamples/foomedical/src/pages/HomePage.tsx63 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOWexamples/foomedical/src/pages/HomePage.tsx170 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, isteCODE
LOWexamples/foomedical/src/pages/HomePage.tsx170 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, isteCODE
LOWexamples/foomedical/src/pages/HomePage.tsx171 dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit. MaioresCODE
LOWexamples/foomedical/src/pages/HomePage.tsx171 dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit. MaioresCODE
LOWexamples/foomedical/src/pages/HomePage.tsx193 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque,CODE
LOWexamples/foomedical/src/pages/HomePage.tsx193 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque,CODE
LOWexamples/foomedical/src/pages/HomePage.tsx194 iste dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit.CODE
LOWexamples/foomedical/src/pages/HomePage.tsx194 iste dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit.CODE
LOWexamples/foomedical/src/pages/landing/index.tsx18 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx18 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx23 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx23 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx28 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx28 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOWexamples/foomedical/src/pages/landing/index.tsx33 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
196 more matches not shown…
Structural Annotation Overuse147 hits · 245 pts
SeverityFileLineSnippetContext
LOW…medplum-healthie-importer/src/healthie/patient.test.ts201 // Step 1: Fetch all patient IDs without filterCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts209 // Step 2: Get patient data with timestamps to find a middle pointCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts218 // Step 3: Find a timestamp in the middle of the resultsCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts226 // Step 4: Re-run with the since filterCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts231 // Step 5: Verify the filtered results are smaller or equal to the originalCOMMENT
LOW…les/medplum-multilingual-demo/src/hooks/useDemoData.ts59 // Step 1: Patient + Questionnaire via transaction with ifNoneExist.COMMENT
LOW…les/medplum-multilingual-demo/src/hooks/useDemoData.ts106 // Step 2: Conditions — one conditional-create per condition code.COMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx120 // Step 1: Order Sent - always completed if order existsCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx125 // Step 2: Lab Acknowledged - presence of accession number or LabOrderRequisitionCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx132 // Step 3: Testing - DiagnosticReport.effectiveDateTimeCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx139 // Step 4: Final - DiagnosticReport.issued timestampCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh6# Step 1: Clean up Fission functions and packages (if any)COMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh32# Step 2: Uninstall Helm releaseCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh36# Step 3: Delete Medplum appCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh40# Step 4: Delete databasesCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh44# Step 5: Clean up Fission RBAC permissionsCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh48# Step 6: Delete Medplum namespaceCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh52# Step 7: Ask about Fission cleanupCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh13# Step 1: Create namespaceCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh17# Step 2: Install Fission (following Medplum's recommended approach)COMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh77# Step 4: Create Fission RBAC permissionsCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh81# Step 5: Deploy databasesCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh85# Step 6: Wait for databases to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh101# Step 8: Deploy Medplum serverCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh107# Step 9: Wait for Medplum server to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh111# Step 10: Deploy Medplum appCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh115# Step 11: Wait for Medplum app to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh119# Step 12: Verify Fission integrationCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh127# Step 13: Create default Fission Node.js environmentCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh52# Step 3: Wait for Fission to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh143# Step 14: Get Fission router ClusterIP for configurationCOMMENT
LOW…amples/medplum-mso-demo/src/pages/UploadBundlePage.tsx32 // Step 1: Create the patientsCOMMENT
LOWexamples/medplum-efax-demo/README.md56// Step 1: Upload the file (creates a Binary resource) and persist it as a DocumentReferenceCOMMENT
LOWexamples/medplum-efax-demo/README.md70// Step 2: Create the recipient OrganizationCOMMENT
LOWexamples/medplum-efax-demo/README.md77// Step 3: Create the CommunicationCOMMENT
LOWexamples/medplum-efax-demo/README.md90// Step 4: Call the $send-efax operationCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx59 // Step 1: Upload the file and persist it as a DocumentReference (creates a BinaryCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx75 // Step 2: Create the recipient OrganizationCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx82 // Step 3: Create the Communication, referencing the DocumentReference viaCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx105 // Step 4: Call the $send-efax operationCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1163 // Step 1: Add criteria and verify subscription worksCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1191 // Step 2: Remove criteria and close WebSocket (simulating component unmount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1214 // Step 3: Set up a new WebSocket server and add criteria again (simulating component remount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1253 // Step 4: Verify we can receive messages on the new subscriptionCOMMENT
LOWpackages/core/src/subscriptions/index.ts480 // Step 1: Ensure a Subscription resource existsCOMMENT
LOWpackages/core/src/subscriptions/index.ts498 // Step 2: Get a binding tokenCOMMENT
LOWpackages/core/src/subscriptions/index.ts517 // Step 3: Verify the operation is still valid after all async workCOMMENT
LOWpackages/server/src/test.setup.ts655 // Step 1: Generate CSRCOMMENT
LOWpackages/server/src/test.setup.ts660 // Step 2: Sign CSR with CACOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts174 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts178 // Step 2: Deploy the botCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts249 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts253 // Step 2: Deploy the botCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts283 // Step 3: Simulate releasing a new version of the lambda layerCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts292 // Step 4: Simulate an error when updating the codeCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts333 // Step 1: Create a bot with no timeout via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts336 // Step 2: Deploy the bot without timeout ... check that default timeout was set on lambdaCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts504 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts508 // Step 2: Initial deploy creates the lambdaCOMMENT
87 more matches not shown…
Verbosity Indicators105 hits · 180 pts
SeverityFileLineSnippetContext
LOW…medplum-healthie-importer/src/healthie/patient.test.ts201 // Step 1: Fetch all patient IDs without filterCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts209 // Step 2: Get patient data with timestamps to find a middle pointCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts218 // Step 3: Find a timestamp in the middle of the resultsCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts226 // Step 4: Re-run with the since filterCOMMENT
LOW…medplum-healthie-importer/src/healthie/patient.test.ts231 // Step 5: Verify the filtered results are smaller or equal to the originalCOMMENT
LOW…les/medplum-multilingual-demo/src/hooks/useDemoData.ts59 // Step 1: Patient + Questionnaire via transaction with ifNoneExist.COMMENT
LOW…les/medplum-multilingual-demo/src/hooks/useDemoData.ts106 // Step 2: Conditions — one conditional-create per condition code.COMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx120 // Step 1: Order Sent - always completed if order existsCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx125 // Step 2: Lab Acknowledged - presence of accession number or LabOrderRequisitionCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx132 // Step 3: Testing - DiagnosticReport.effectiveDateTimeCOMMENT
LOW…dplum-provider/src/components/labs/LabOrderDetails.tsx139 // Step 4: Final - DiagnosticReport.issued timestampCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh6# Step 1: Clean up Fission functions and packages (if any)COMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh32# Step 2: Uninstall Helm releaseCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh36# Step 3: Delete Medplum appCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh40# Step 4: Delete databasesCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh44# Step 5: Clean up Fission RBAC permissionsCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh48# Step 6: Delete Medplum namespaceCOMMENT
LOWexamples/medplum-local-k8s/cleanup-local.sh52# Step 7: Ask about Fission cleanupCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh13# Step 1: Create namespaceCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh17# Step 2: Install Fission (following Medplum's recommended approach)COMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh77# Step 4: Create Fission RBAC permissionsCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh81# Step 5: Deploy databasesCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh85# Step 6: Wait for databases to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh101# Step 8: Deploy Medplum serverCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh107# Step 9: Wait for Medplum server to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh111# Step 10: Deploy Medplum appCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh115# Step 11: Wait for Medplum app to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh119# Step 12: Verify Fission integrationCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh127# Step 13: Create default Fission Node.js environmentCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh52# Step 3: Wait for Fission to be readyCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh143# Step 14: Get Fission router ClusterIP for configurationCOMMENT
LOW…amples/medplum-mso-demo/src/pages/UploadBundlePage.tsx32 // Step 1: Create the patientsCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx59 // Step 1: Upload the file and persist it as a DocumentReference (creates a BinaryCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx75 // Step 2: Create the recipient OrganizationCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx82 // Step 3: Create the Communication, referencing the DocumentReference viaCOMMENT
LOWexamples/medplum-efax-demo/src/pages/SendFaxPage.tsx105 // Step 4: Call the $send-efax operationCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1163 // Step 1: Add criteria and verify subscription worksCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1191 // Step 2: Remove criteria and close WebSocket (simulating component unmount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1214 // Step 3: Set up a new WebSocket server and add criteria again (simulating component remount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1253 // Step 4: Verify we can receive messages on the new subscriptionCOMMENT
LOWpackages/core/src/subscriptions/index.ts480 // Step 1: Ensure a Subscription resource existsCOMMENT
LOWpackages/core/src/subscriptions/index.ts498 // Step 2: Get a binding tokenCOMMENT
LOWpackages/core/src/subscriptions/index.ts517 // Step 3: Verify the operation is still valid after all async workCOMMENT
LOWpackages/core/src/fhirpath/utils.ts401 // We need to check if both `code` and `system` are equivalent.COMMENT
LOWpackages/server/src/test.setup.ts655 // Step 1: Generate CSRCOMMENT
LOWpackages/server/src/test.setup.ts660 // Step 2: Sign CSR with CACOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts174 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts178 // Step 2: Deploy the botCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts249 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts253 // Step 2: Deploy the botCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts283 // Step 3: Simulate releasing a new version of the lambda layerCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts292 // Step 4: Simulate an error when updating the codeCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts333 // Step 1: Create a bot with no timeout via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts336 // Step 2: Deploy the bot without timeout ... check that default timeout was set on lambdaCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts504 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts508 // Step 2: Initial deploy creates the lambdaCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts216 // Step 3: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts309 // Step 5: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts358 // Step 3: Update bot to have to have a timeoutCOMMENT
45 more matches not shown…
Self-Referential Comments28 hits · 87 pts
SeverityFileLineSnippetContext
MEDIUMterraform/gcp/outputs.tf1# This file defines output variables for the Terraform configuration.COMMENT
MEDIUMterraform/gcp/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUMexamples/medplum-local-k8s/deploy-local.sh21 # Define the namespace for FissionCOMMENT
MEDIUMexamples/medplum-local-k8s/deploy-local.sh24 # Create the Fission namespaceCOMMENT
MEDIUMscripts/deploy-bot-layer.sh20# Create a temporary directory for the layerCOMMENT
MEDIUMscripts/deploy-bot-layer.sh39# Create the zip fileCOMMENT
MEDIUMscripts/deploy-introspection-schema.sh50# Create an invlidation fileCOMMENT
MEDIUMscripts/prune-branches.sh20 # Create a new commit object from the tree of the current branch and the merge base, and compare it to mainCOMMENT
MEDIUMscripts/build-deb.sh57# Create the server configCOMMENT
MEDIUMscripts/build-deb.sh62# Create the data directoryCOMMENT
MEDIUMscripts/build-deb.sh75# Create the systemd service definitionCOMMENT
MEDIUMscripts/build-deb.sh78# Create the service fileCOMMENT
MEDIUMscripts/build-deb.sh97# Create the nginx sites-available directoryCOMMENT
MEDIUMscripts/build-deb.sh100# Create the app site configurationCOMMENT
MEDIUMscripts/build-deb.sh150# Create the server site configurationCOMMENT
MEDIUMscripts/build-deb.sh190# Create the Debian template variablesCOMMENT
MEDIUMscripts/build-deb.sh218# Create the Debian config scriptCOMMENT
MEDIUMscripts/build-deb.sh237# Create the Debian control fileCOMMENT
MEDIUMscripts/build-deb.sh259# Create the Debian post-install scriptCOMMENT
MEDIUMscripts/build-deb.sh307# Create the Medplum userCOMMENT
MEDIUMscripts/build-deb.sh326# Create the Debian pre-remove scriptCOMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts10 # Define the fields for the resource being createdCOMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts56 # Define the fields for the resource being createdCOMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts83 # Define the fields for the resource being created, and alias as "newPatient"COMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts129 # Define the fields for the resource being created, and alias as "newPatient"COMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts205 # Define the elements for the updated resources. Note that this will *overwrite* the entire resource.COMMENT
MEDIUMpackages/examples/src/graphql/mutations.ts256 # Define the elements for the updated resources. Note that this will *overwrite* the entire resource.COMMENT
MEDIUMpackages/examples/src/api/fhir/operations/bulk-fhir.py108 # Create a new connection to the host specified in the URLCOMMENT
Over-Commented Block68 hits · 68 pts
SeverityFileLineSnippetContext
LOWterraform/gcp/outputs.tf1# This file defines output variables for the Terraform configuration.COMMENT
LOWterraform/gcp/service-accounts.tf1# This module sets up service accounts for the project and assigns specific roles to them.COMMENT
LOWterraform/gcp/cloud-sql.tf1# This module configures a PostgreSQL database instance on Google Cloud SQL.COMMENT
LOWterraform/gcp/cdn.tf1# This module sets up a CDN-enabled external HTTP(S) load balancer on Google Cloud Platform.COMMENT
LOWterraform/gcp/redis.tf1# This module sets up a Redis instance using Google Cloud's Memorystore service.COMMENT
LOWterraform/gcp/backend.tf1# This block serves as a technical illustration of configuring a Google Cloud Storage (GCS) backend for Terraform state COMMENT
LOWcharts/values.yaml1# Default values for medplum.COMMENT
LOWexamples/medplum-multilingual-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOW…les/medplum-client-external-idp-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-task-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOW…medplum-websocket-subscriptions-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-provider/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOW…ples/medplum-provider/src/utils/spaceMessaging.test.ts321 test('returns fallback note when loop hits max iterations and no tools ran', async () => {COMMENT
LOW…medplum-provider/src/pages/patient/MedicationsPage.tsx121 const [orders, setOrders] = useState<MedicationRequest[]>([]);COMMENT
LOWexamples/medplum-demo-bots/src/textract-bot.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-eligibility-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-photon-integration/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-patient-intake-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-mso-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-smart-on-fhir-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-questionnaire-hooks/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-health-gorilla-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-fhircast-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-hello-world/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/foomedical/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-valueset-selector/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWexamples/medplum-efax-demo/src/vite-env.d.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWscripts/set-bot-env.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/upgrade.sh81echo "Last completed step: $LAST_STEP"COMMENT
LOWscripts/upgrade.sh101# temporal-polyfill - version 1.0.0 is actually an old version, holding back to 0.3.0 which is the latest stable versionCOMMENT
LOWpackages/core/src/search/ir.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWpackages/core/src/fhirpath/utils.ts121COMMENT
LOW…act-hooks/src/useCachedBinaryUrl/useCachedBinaryUrl.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOW…hooks/src/useQuestionnaireForm/useQuestionnaireForm.ts21 QUESTIONNAIRE_SIGNATURE_RESPONSE_URL,COMMENT
LOWpackages/graphiql/src/index.tsx21# high-quality compliant applications. Medplum includes a FHIR server,COMMENT
LOWpackages/server/src/auth/mfa.test.ts1881 expect(verify.status).toBe(200);COMMENT
LOWpackages/server/src/fhir/operations/utils/find.test.ts201 expect(slots).toEqual([COMMENT
LOWpackages/server/src/fhir/operations/utils/find.test.ts221 // the frequency of unbookable times, but means that you lose dailyCOMMENT
LOWpackages/agent/src/app.test.ts4241 mockServer.stop(resolve);COMMENT
LOWpackages/agent/src/app.ts681 this.log.error(`Failed to open durable queue at ${path}: ${normalizeErrorString(err)}`);COMMENT
LOWpackages/agent/src/app.ts1701 // For a durable-queue dispatch, putting the request on the wire is theCOMMENT
LOWpackages/agent/src/hl7.ts421 // Snapshot the message exactly as received, before any transformationCOMMENT
LOWpackages/agent/src/queue/durable-queue.ts141 // ── Dispatch-lease orchestration (formerly DispatchLeaseManager) ──COMMENT
LOWpackages/agent/src/queue/durable-queue.ts161 private leaseLoopActive = false;COMMENT
LOWpackages/agent/src/queue/durable-queue.ts241 // Per-channel monotonic sequence counter (assignSeqNo). Single-process +COMMENT
LOWpackages/agent/src/queue/durable-queue.ts281COMMENT
LOWpackages/agent/src/queue/integration.test.ts1581 await app.stop();COMMENT
LOWpackages/agent/src/queue/integration.test.ts1901COMMENT
LOWpackages/agent/src/queue/integration.test.ts2061 await appB.stop();COMMENT
LOWpackages/agent/src/queue/integration.test.ts2081 // the lease row a peer's lease manager would have written, and the point under testCOMMENT
LOWpackages/ccda/src/templates.ts81 },COMMENT
LOWpackages/ccda/src/templates.ts101// M) USCDI Data Class/Element: Assessment and Plan of Treatment:COMMENT
LOWpackages/ccda/src/templates.ts221 { '@_root': OID_PAYERS_SECTION },COMMENT
LOWpackages/ccda/src/systems.ts821// SOPT Codes:COMMENT
LOWpackages/generator/src/jsonschema.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOWpackages/generator/src/umls.ts61 const loincStream = createWriteStream('./output/loinc.txt');COMMENT
LOWpackages/examples/src/provider/spaces-examples.ts1// SPDX-FileCopyrightText: Copyright Orangebot, Inc. and Medplum contributorsCOMMENT
LOW…ages/examples/src/fhir-datastore/external-documents.ts41# "id": "example-binary-id",COMMENT
LOW…ages/examples/src/fhir-datastore/external-documents.ts61# }COMMENT
LOW…ages/examples/src/fhir-datastore/external-documents.ts81COMMENT
8 more matches not shown…
AI Slop Vocabulary17 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMexamples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
MEDIUMpackages/cdk/src/backend.ts198 // Instances with attached NVMe SSD (db.*d* instance classes) should utilize I/O optimized storageCOMMENT
MEDIUM…ages/core/src/typeschema/__test__/us-core-patient.json1{"resourceType":"StructureDefinition","id":"us-core-patient","text":{"status":"extensions","div":"<div xmlns=\"http://wwCODE
MEDIUM…ages/core/src/typeschema/__test__/us-core-patient.json1{"resourceType":"StructureDefinition","id":"us-core-patient","text":{"status":"extensions","div":"<div xmlns=\"http://wwCODE
MEDIUMpackages/core/src/typeschema/__test__/base-patient.json1{"resourceType":"StructureDefinition","id":"Patient","meta":{"lastUpdated":"2023-03-26T15:21:02.749+11:00"},"text":{"staCODE
MEDIUMpackages/core/src/typeschema/__test__/base-patient.json1{"resourceType":"StructureDefinition","id":"Patient","meta":{"lastUpdated":"2023-03-26T15:21:02.749+11:00"},"text":{"staCODE
MEDIUM…re/src/typeschema/__test__/us-core-blood-pressure.json1{"resourceType":"StructureDefinition","id":"us-core-blood-pressure","text":{"status":"extensions","div":"<div xmlns=\"htCODE
MEDIUM…re/src/typeschema/__test__/us-core-blood-pressure.json1{"resourceType":"StructureDefinition","id":"us-core-blood-pressure","text":{"status":"extensions","div":"<div xmlns=\"htCODE
MEDIUM…/core/src/typeschema/__test__/body-weight-profile.json1{"resourceType":"StructureDefinition","id":"bodyweight","text":{"status":"generated","div":"<div xmlns=\"http://www.w3.oCODE
MEDIUM…/core/src/typeschema/__test__/body-weight-profile.json1{"resourceType":"StructureDefinition","id":"bodyweight","text":{"status":"generated","div":"<div xmlns=\"http://www.w3.oCODE
MEDIUM…core/src/typeschema/__test__/capability-statement.json1{"resourceType":"StructureDefinition","id":"CapabilityStatement","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},CODE
MEDIUM…core/src/typeschema/__test__/capability-statement.json1{"resourceType":"StructureDefinition","id":"CapabilityStatement","meta":{"lastUpdated":"2019-11-01T09:29:23.356+11:00"},CODE
MEDIUM…re/src/typeschema/__test__/us-core-smoking-status.json6 "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\CODE
MEDIUMpackages/core/src/fhirpath/utils.ts403 // Essentially they must both be `undefined` or both the same.COMMENT
MEDIUM…/src/fhir/r4/testing/uscore-v7.0.0-smoking-status.json6 "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\CODE
MEDIUM…hir/r4/testing/uscore-v5.0.1-structuredefinitions.json1[{"resourceType":"StructureDefinition","id":"us-core-patient","url":"http://hl7.org/fhir/us/core/StructureDefinition/us-CODE
MEDIUM…hir/r4/testing/uscore-v5.0.1-structuredefinitions.json1[{"resourceType":"StructureDefinition","id":"us-core-patient","url":"http://hl7.org/fhir/us/core/StructureDefinition/us-CODE
Decorative Section Separators9 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM…ider/src/components/insurance/CoverageRequestInbox.tsx238// ── Empty state ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…ider/src/components/insurance/CoverageRequestInbox.tsx253// ── Skeletons ─────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx22// ── Fixtures ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx83// ── Helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx97// ── Test setup ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx125// ── Tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx138 // ── No coverage selected ────────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx147 // ── Coverage detail panel ───────────────────────────────────────────────────COMMENT
MEDIUM…src/components/insurance/CoverageRequestInbox.test.tsx260 // ── Check Eligibility button ────────────────────────────────────────────────COMMENT
AI Response Leakage3 hits · 22 pts
SeverityFileLineSnippetContext
HIGH…re/src/typeschema/__test__/us-core-blood-pressure.json1{"resourceType":"StructureDefinition","id":"us-core-blood-pressure","text":{"status":"extensions","div":"<div xmlns=\"htCODE
HIGH…/core/src/typeschema/__test__/body-weight-profile.json1{"resourceType":"StructureDefinition","id":"bodyweight","text":{"status":"generated","div":"<div xmlns=\"http://www.w3.oCODE
HIGH…hir/r4/testing/uscore-v5.0.1-structuredefinitions.json1[{"resourceType":"StructureDefinition","id":"us-core-patient","url":"http://hl7.org/fhir/us/core/StructureDefinition/us-CODE
Redundant / Tautological Comments13 hits · 20 pts
SeverityFileLineSnippetContext
LOWexamples/medplum-local-k8s/status-local.sh5# Check if namespace existsCOMMENT
LOWexamples/medplum-local-k8s/status-local.sh19 # Check if Medplum is respondingCOMMENT
LOWexamples/medplum-local-k8s/status-local.sh36# Check if Fission namespace existsCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh19# Check if Fission is already installedCOMMENT
LOWexamples/medplum-local-k8s/deploy-local.sh41 # Check if installation was successfulCOMMENT
LOWscripts/prepare-release.sh30# Check if a new requiredBefore entry has been added to the data migration manifestCOMMENT
LOWscripts/prepare-release.sh47# Check if a new version is provided as a command line argument and override if presentCOMMENT
LOWscripts/prune-branches.sh5# Check if the --dryrun option is passedCOMMENT
LOWscripts/build-deb.sh9# Check if dpkg-deb is availableCOMMENT
LOWscripts/update-example-changes.sh24 # Check if the listening repo existsCOMMENT
LOWscripts/upgrade.sh126# Check if there is a PR for this branch alreadyCOMMENT
LOW.github/auto_assign.yml7# Set addAssignees to 'author' to set the PR creator as the assignee.COMMENT
LOW.github/workflows/publish-meta.yml63 # Check if asset already exists in S3 (idempotent check)COMMENT
Example Usage Blocks8 hits · 12 pts
SeverityFileLineSnippetContext
LOWterraform/gcp/outputs.tf5# Usage:COMMENT
LOWterraform/gcp/project-services.tf3# Usage:COMMENT
LOWterraform/gcp/service-accounts.tf4# Usage:COMMENT
LOWterraform/gcp/cloud-sql.tf14# Usage:COMMENT
LOWterraform/gcp/network.tf4# Usage:COMMENT
LOWterraform/gcp/cdn.tf12# Usage:COMMENT
LOWterraform/gcp/gke.tf4# Usage:COMMENT
LOWterraform/gcp/redis.tf9# Usage:COMMENT
Magic Placeholder Names2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpackages/docs/docs/self-hosting/sendgrid.md44 "password": "YOUR_API_KEY"CODE
HIGHpackages/docs/docs/self-hosting/datadog.md25 "DD_API_KEY": "YOUR_API_KEY",CODE
Slop Phrases2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/medplum-provider/src/components/utils.ts14 * This is a crude approximation for demonstration purposes.COMMENT
MEDIUM…hir/r4/testing/uscore-v5.0.1-structuredefinitions.json1[{"resourceType":"StructureDefinition","id":"us-core-patient","url":"http://hl7.org/fhir/us/core/StructureDefinition/us-CODE
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMpackages/docs/docs/integration/hl7-interfacing/index.md59Some organizations will enable HL7 messages dropped as files onto an SFTP server. The Medplum bot framework supports anCODE