AI Slop Code Risk Monitor

medplum/medplum

SlopCodeMonitor badge for medplum/medplum Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

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

2.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for medplum/medplum, a TypeScript project with 2,774 GitHub stars. SynthScan examined 1,033,265 lines of code across 4228 source files, recording 1597 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 2.3 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.3
Adjusted Signal
2.3
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
2.8K
Stars
TypeScript
Language
1.0M
Lines of Code
4.2K
Files
1.6K
Pattern Hits
2026-10-31
Scan Date
0.03
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 7.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1188 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.2/100 · LOW

Are imports declared and package/API names verified? 407 finding(s).

Agent Over-Engineering Ratio 3.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 765 finding(s).

PR Review Velocity Impact 10.9/100 · LOW

Which changes need focused human review? 1597 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 136MEDIUM 54LOW 1407

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1597 distinct pattern matches across 16 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers763 hits · 773 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/test-utils/spaces.ts21export function createMockStreamingResponse(content: string): Response {CODE
LOWexamples/medplum-provider/src/utils/eligibility.ts72export function getEligibilityServiceTypes(valueSet: ValueSet | undefined): ServiceType[] {CODE
LOWexamples/medplum-provider/src/utils/eligibility.ts106export function buildEligibilityServiceTypeItems(CODE
LOWexamples/medplum-provider/src/utils/eligibility.ts117export function buildEligibilityServiceTypesCompose(serviceTypes: readonly ServiceType[]): ValueSetCompose {CODE
LOWexamples/medplum-provider/src/utils/eligibility.ts128export function buildEligibilityServiceTypesValueSet(serviceTypes: readonly ServiceType[]): ValueSet {CODE
LOWexamples/medplum-provider/src/utils/eligibility.ts146export function buildEligibilityServiceTypesPatch(serviceTypes: readonly ServiceType[]): PatchOperation[] {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.ts14function createMockStreamingResponse(chunks: string[]): Response {CODE
LOW…ples/medplum-provider/src/utils/spaceMessaging.test.ts38function createMockBufferedResponse(content: string): Response {CODE
LOWexamples/medplum-provider/src/utils/operations.ts26export async function isCustomOperationAvailable(medplum: MedplumClient, code: string): Promise<boolean> {CODE
LOWexamples/medplum-provider/src/utils/spacePersistence.ts65function buildMessageCommunication(topicId: string, message: Message): Communication {CODE
LOWexamples/medplum-provider/src/utils/encounter.ts119async function createChargeItemFromPlanDefinition(CODE
LOWexamples/medplum-provider/src/utils/encounter.ts165async function handleChargeItemsFromTasks(CODE
LOWexamples/medplum-provider/src/utils/encounter.ts199async function createChargeItemFromServiceRequest(CODE
LOWexamples/medplum-provider/src/utils/encounter.ts365async function findExistingPatientCondition(CODE
LOWexamples/medplum-provider/src/utils/labOrderDraft.ts267function createLabOrderDraftBundle(inputs: PartialLabOrderInputs): Bundle {CODE
LOWexamples/medplum-provider/src/utils/intake-utils.ts808function getRelatedPersonRelationshipFromCoverage(coverageRelationship: Coding): Coding | undefined {CODE
LOWexamples/medplum-provider/src/utils/medication-gcn.ts23export function getGcnSeqnosFromMedication(m: Medication): number[] {CODE
LOWexamples/medplum-provider/src/utils/medication-gcn.ts55export function getUnambiguousGcnSeqnoFromMedication(m: Medication): number | undefined {CODE
LOWexamples/medplum-provider/src/utils/medication-gcn.ts73export function getDisplayNameFromMedication(m: Medication, routedMedIdSystem: string): string | undefined {CODE
LOWexamples/medplum-provider/src/utils/medication-gcn.ts89export function getVendorKeyFromMedication(m: Medication, system: string): number | undefined {CODE
LOWexamples/medplum-provider/src/utils/candid.ts165export async function refreshCandidClaimResponse(CODE
LOW…ples/medplum-provider/src/utils/medication-gcn.test.ts13function medicationWithGcnIdentifiers(...values: string[]): Medication {CODE
LOWexamples/medplum-provider/src/utils/billing.ts67export function getMissingBillingOrganizationFields(organization: Organization): string[] {CODE
LOWexamples/medplum-provider/src/utils/billing.ts336export function withCandidProviderExtensions(organization: Organization): Organization {CODE
LOWexamples/medplum-provider/src/utils/billing.ts401export function withCandidPractitionerExtensions(practitioner: Practitioner, billsIndividually: boolean): Practitioner {CODE
LOWexamples/medplum-provider/src/utils/labSearch.ts31export function addDefaultLabSearchValues(search: SearchRequest, tab: LabTab): SearchRequest {CODE
LOW…der/src/components/ResourceFormWithRequiredProfile.tsx20export function ResourceFormWithRequiredProfile(props: ResourceFormWithRequiredProfileProps): JSX.Element {CODE
LOW…edplum-provider/src/components/labs/OrderLabsModal.tsx47async function sendLabOrderToHealthGorilla(medplum: MedplumClient, labOrder: ServiceRequest): Promise<void> {CODE
LOW…r/src/components/pharmacy/ScriptSurePharmacyDialog.tsx33function ScriptSureSpecialtyFilters({ value, onChange }: ScriptSureSpecialtyFiltersProps): JSX.Element {CODE
LOW…/src/components/tasks/ScriptSureMessageTaskActions.tsx73export function ScriptSureMessageTaskActions(props: ScriptSureMessageTaskActionsProps): JSX.Element | null {CODE
LOW…components/tasks/ScriptSureMessageTaskActions.utils.ts28export function isScriptSureNewRxErrorTask(task: Task): boolean {CODE
703 more matches not shown…
Cross-Language Confusion (JS/TS)130 hits · 581 pts
SeverityFileLineSnippetContext
HIGH⚡packages/cli/src/aws/init.ts26 print('This tool prepares the necessary prerequisites for deploying Medplum in your AWS account.');CODE
HIGH⚡packages/cli/src/aws/init.ts27 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts28 print('Most Medplum infrastructure is deployed using the AWS CDK.');CODE
HIGH⚡packages/cli/src/aws/init.ts29 print('However, some AWS resources must be created manually, such as email addresses and SSL certificates.');CODE
HIGH⚡packages/cli/src/aws/init.ts30 print('This tool will help you create those resources.');CODE
HIGH⚡packages/cli/src/aws/init.ts31 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts32 print('Upon completion, this tool will:');CODE
HIGH⚡packages/cli/src/aws/init.ts33 print(' 1. Generate a Medplum CDK config file (i.e., medplum.demo.config.json)');CODE
HIGH⚡packages/cli/src/aws/init.ts34 print(' 2. Optionally generate an AWS CloudFront signing key');CODE
HIGH⚡packages/cli/src/aws/init.ts35 print(' 3. Optionally request SSL certificates from AWS Certificate Manager');CODE
HIGH⚡packages/cli/src/aws/init.ts36 print(' 4. Optionally write server config settings to AWS Parameter Store');CODE
HIGH⚡packages/cli/src/aws/init.ts37 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts38 print('The Medplum infra config file is an input to the Medplum CDK.');CODE
HIGH⚡packages/cli/src/aws/init.ts39 print('The Medplum CDK will create and manage the necessary AWS resources.');CODE
HIGH⚡packages/cli/src/aws/init.ts40 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts41 print('We will ask a series of questions to generate your infra config file.');CODE
HIGH⚡packages/cli/src/aws/init.ts42 print('Some questions have predefined options in [square brackets].');CODE
HIGH⚡packages/cli/src/aws/init.ts43 print('Some questions have default values in (parentheses), which you can accept by pressing Enter.');CODE
HIGH⚡packages/cli/src/aws/init.ts44 print('Press Ctrl+C at any time to exit.');CODE
HIGH⚡packages/cli/src/aws/init.ts48 print('It appears that you do not have AWS credentials configured.');CODE
HIGH⚡packages/cli/src/aws/init.ts49 print('AWS credentials are not strictly required, but will enable some additional features.');CODE
HIGH⚡packages/cli/src/aws/init.ts50 print('If you intend to use AWS credentials, please configure them now.');CODE
HIGH⚡packages/cli/src/aws/init.ts55 print('Medplum deployments have a short environment name such as "prod", "staging", "alice", or "demo".');CODE
HIGH⚡packages/cli/src/aws/init.ts56 print('The environment name is used in multiple places:');CODE
HIGH⚡packages/cli/src/aws/init.ts57 print(' 1. As part of config file names (i.e., medplum.demo.config.json)');CODE
HIGH⚡packages/cli/src/aws/init.ts58 print(' 2. As the base of CloudFormation stack names (i.e., MedplumDemo)');CODE
HIGH⚡packages/cli/src/aws/init.ts59 print(' 3. AWS Parameter Store keys (i.e., /medplum/demo/...)');CODE
HIGH⚡packages/cli/src/aws/init.ts61 print('Using environment name "' + config.name + '"...');CODE
HIGH⚡packages/cli/src/aws/init.ts64 print('Medplum Infrastructure will create a config file in the current directory.');CODE
HIGH⚡packages/cli/src/aws/init.ts67 print('Config file already exists.');CODE
HIGH⚡packages/cli/src/aws/init.ts70 print('Using config file "' + configFileName + '"...');CODE
HIGH⚡packages/cli/src/aws/init.ts74 print('Most Medplum resources will be created in a single AWS region.');CODE
HIGH⚡packages/cli/src/aws/init.ts79 print('Medplum Infrastructure will use your AWS account number to create AWS resources.');CODE
HIGH⚡packages/cli/src/aws/init.ts81 print('Using the AWS CLI, your current account ID is: ' + currentAccountId);CODE
HIGH⚡packages/cli/src/aws/init.ts87 print('Medplum will create a CloudFormation stack to manage AWS resources.');CODE
HIGH⚡packages/cli/src/aws/init.ts88 print('AWS CloudFormation stack names ');CODE
HIGH⚡packages/cli/src/aws/init.ts94 print('Please enter the base domain name for your Medplum deployment.');CODE
HIGH⚡packages/cli/src/aws/init.ts95 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts96 print('Medplum deploys multiple subdomains for various services.');CODE
HIGH⚡packages/cli/src/aws/init.ts97 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts98 print('For example, "api." for the REST API and "app." for the web application.');CODE
HIGH⚡packages/cli/src/aws/init.ts99 print('The base domain name is the common suffix for all subdomains.');CODE
HIGH⚡packages/cli/src/aws/init.ts100 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts101 print('For example, if your base domain name is "example.com",');CODE
HIGH⚡packages/cli/src/aws/init.ts102 print('then the REST API will be "api.example.com".');CODE
HIGH⚡packages/cli/src/aws/init.ts103 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts104 print('The base domain should include the TLD (i.e., ".com", ".org", ".net").');CODE
HIGH⚡packages/cli/src/aws/init.ts105 print('');CODE
HIGH⚡packages/cli/src/aws/init.ts106 print('Note that you must own the base domain, and it must use Route53 DNS.');CODE
HIGH⚡packages/cli/src/aws/init.ts113 print('Medplum sends transactional emails to users.');CODE
HIGH⚡packages/cli/src/aws/init.ts114 print('For example, emails to new users or for password reset.');CODE
HIGH⚡packages/cli/src/aws/init.ts115 print('Medplum will use the support email address to send these emails.');CODE
HIGH⚡packages/cli/src/aws/init.ts116 print('Note that you must verify the support email address in SES.');CODE
HIGH⚡packages/cli/src/aws/init.ts120 print('Medplum deploys a REST API for the backend services.');CODE
HIGH⚡packages/cli/src/aws/init.ts126 print('Medplum deploys a web application for the user interface.');CODE
HIGH⚡packages/cli/src/aws/init.ts131 print('Medplum deploys a storage service for file uploads.');CODE
HIGH⚡packages/cli/src/aws/init.ts136 print('Medplum uses an S3 bucket to store binary content such as file uploads.');CODE
HIGH⚡packages/cli/src/aws/init.ts137 print('Medplum will create a the S3 bucket as part of the CloudFormation stack.');CODE
HIGH⚡packages/cli/src/aws/init.ts142 print('Medplum API servers can be deployed in multiple availability zones.');CODE
HIGH⚡packages/cli/src/aws/init.ts143 print('This provides redundancy and high availability.');CODE
70 more matches not shown…
Fake / Example Data275 hits · 293 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.ts54 name: 'John Doe',CODE
LOW…medplum-healthie-importer/src/healthie/patient.test.ts62 line1: '123 Main St',CODE
LOWexamples/medplum-provider/src/utils/intake-form.test.ts11 phone: { valueString: '555-5555' },CODE
LOW…er/src/components/schedule/AppointmentDetails.test.tsx315 actor: { reference: `Patient/${patientId}`, display: 'Jane Doe' },CODE
LOW…er/src/components/schedule/AppointmentDetails.test.tsx351 expect(screen.getByText('Jane Doe')).toBeInTheDocument();CODE
LOW…vider/src/components/schedule/ScheduleDetails.test.tsx63 { actor: { reference: 'Patient/123', display: 'John Doe' }, status: 'accepted' },CODE
LOW…rovider/src/components/tasks/TaskDetailsModal.test.tsx79 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
LOW…/medplum-provider/src/components/fax/fax.utils.test.ts24 expect(formatFaxNumber('555-1234')).toBe('555-1234');CODE
LOW…plum-provider/src/components/fax/SendFaxModal.test.tsx105 await typeFaxNumber('555-1234');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.tsx569 { actor: { reference: 'Patient/patient-1', display: 'Jane Doe' }, status: 'accepted' },CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx600 await waitFor(() => expect(screen.getByText('Jane Doe')).toBeInTheDocument());CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx602 await user.click(screen.getByText('Jane Doe'));CODE
LOW…plum-provider/src/pages/schedule/SchedulePage.test.tsx622 await waitFor(() => expect(screen.queryByText('Jane Doe')).not.toBeInTheDocument());CODE
LOW…plum-provider/src/pages/spaces/PromptComposer.test.tsx219 expect(textarea()).toHaveAttribute('placeholder', 'Start speaking—your transcribed words will appear here.');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.ts61 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
LOW⚡examples/foomedical/src/pages/HomePage.tsx39 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx47 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx55 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx63 'Lorem ipsum at porta donec ultricies ut, arcu morbi amet arcu ornare, curabitur pharetra magna tempus',CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx170 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, isteCODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx170 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, isteCODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx171 dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit. MaioresCODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx171 dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit. MaioresCODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx193 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque,CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx193 Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque,CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx194 iste dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit.CODE
LOW⚡examples/foomedical/src/pages/HomePage.tsx194 iste dolor cupiditate blanditiis ratione. Lorem ipsum, dolor sit amet consectetur adipisicing elit.CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx18 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx18 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx23 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx23 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx28 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
LOW⚡examples/foomedical/src/pages/landing/index.tsx28 'Lorem ipsum, dolor sit amet consectetur adipisicing elit. Maiores impedit perferendis suscipit eaque, iste dolor CODE
215 more matches not shown…
Structural Annotation Overuse159 hits · 264 pts
SeverityFileLineSnippetContext
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts203 // Step 1: Fetch all patient IDs without filterCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts211 // Step 2: Get patient data with timestamps to find a middle pointCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts220 // Step 3: Find a timestamp in the middle of the resultsCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts228 // Step 4: Re-run with the since filterCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts233 // 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
LOWexamples/medplum-local-k8s/cleanup-local.sh6# Step 1: Clean up Fission functions and packages (if any)COMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh32# Step 2: Uninstall Helm releaseCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh36# Step 3: Delete Medplum appCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh40# Step 4: Delete databasesCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh44# Step 5: Clean up Fission RBAC permissionsCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh48# Step 6: Delete Medplum namespaceCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh52# Step 7: Ask about Fission cleanupCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh13# Step 1: Create namespaceCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh17# Step 2: Install Fission (following Medplum's recommended approach)COMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh77# Step 4: Create Fission RBAC permissionsCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh81# Step 5: Deploy databasesCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh85# Step 6: Wait for databases to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh101# Step 8: Deploy Medplum serverCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh107# Step 9: Wait for Medplum server to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh111# Step 10: Deploy Medplum appCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh115# Step 11: Wait for Medplum app to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh119# Step 12: Verify Fission integrationCOMMENT
LOW⚡examples/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
LOW⚡examples/medplum-efax-demo/src/pages/SendFaxPage.tsx75 // Step 2: Create the recipient OrganizationCOMMENT
LOW⚡examples/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.ts1180 // Step 1: Add criteria and verify subscription worksCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1208 // Step 2: Remove criteria and close WebSocket (simulating component unmount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1231 // Step 3: Set up a new WebSocket server and add criteria again (simulating component remount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1270 // Step 4: Verify we can receive messages on the new subscriptionCOMMENT
LOWpackages/core/src/subscriptions/index.ts484 // Step 1: Ensure a Subscription resource existsCOMMENT
LOWpackages/core/src/subscriptions/index.ts502 // Step 2: Get a binding tokenCOMMENT
LOWpackages/core/src/subscriptions/index.ts521 // Step 3: Verify the operation is still valid after all async workCOMMENT
LOW⚡packages/server/src/test.setup.ts733 // Step 1: Generate CSRCOMMENT
LOW⚡packages/server/src/test.setup.ts738 // Step 2: Sign CSR with CACOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts176 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts180 // Step 2: Deploy the botCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts268 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts272 // Step 2: Deploy the botCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts302 // Step 3: Simulate releasing a new version of the lambda layerCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts311 // Step 4: Simulate an error when updating the codeCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts352 // Step 1: Create a bot with no timeout via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts355 // Step 2: Deploy the bot without timeout ... check that default timeout was set on lambdaCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts523 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts527 // Step 2: Initial deploy creates the lambdaCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts221 // Step 3: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts328 // Step 5: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts377 // Step 3: Update bot to have to have a timeoutCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts388 // Step 4: Deploy bot againCOMMENT
99 more matches not shown…
Verbosity Indicators109 hits · 186 pts
SeverityFileLineSnippetContext
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts203 // Step 1: Fetch all patient IDs without filterCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts211 // Step 2: Get patient data with timestamps to find a middle pointCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts220 // Step 3: Find a timestamp in the middle of the resultsCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts228 // Step 4: Re-run with the since filterCOMMENT
LOW⚡…medplum-healthie-importer/src/healthie/patient.test.ts233 // 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
LOWexamples/medplum-local-k8s/cleanup-local.sh6# Step 1: Clean up Fission functions and packages (if any)COMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh32# Step 2: Uninstall Helm releaseCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh36# Step 3: Delete Medplum appCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh40# Step 4: Delete databasesCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh44# Step 5: Clean up Fission RBAC permissionsCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh48# Step 6: Delete Medplum namespaceCOMMENT
LOW⚡examples/medplum-local-k8s/cleanup-local.sh52# Step 7: Ask about Fission cleanupCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh13# Step 1: Create namespaceCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh17# Step 2: Install Fission (following Medplum's recommended approach)COMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh77# Step 4: Create Fission RBAC permissionsCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh81# Step 5: Deploy databasesCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh85# Step 6: Wait for databases to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh101# Step 8: Deploy Medplum serverCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh107# Step 9: Wait for Medplum server to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh111# Step 10: Deploy Medplum appCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh115# Step 11: Wait for Medplum app to be readyCOMMENT
LOW⚡examples/medplum-local-k8s/deploy-local.sh119# Step 12: Verify Fission integrationCOMMENT
LOW⚡examples/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
LOW⚡examples/medplum-efax-demo/src/pages/SendFaxPage.tsx75 // Step 2: Create the recipient OrganizationCOMMENT
LOW⚡examples/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.ts1180 // Step 1: Add criteria and verify subscription worksCOMMENT
LOWpackages/core/src/subscriptions/index.test.ts1208 // Step 2: Remove criteria and close WebSocket (simulating component unmount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1231 // Step 3: Set up a new WebSocket server and add criteria again (simulating component remount)COMMENT
LOWpackages/core/src/subscriptions/index.test.ts1270 // Step 4: Verify we can receive messages on the new subscriptionCOMMENT
LOWpackages/core/src/subscriptions/index.ts484 // Step 1: Ensure a Subscription resource existsCOMMENT
LOWpackages/core/src/subscriptions/index.ts502 // Step 2: Get a binding tokenCOMMENT
LOWpackages/core/src/subscriptions/index.ts521 // 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
LOW⚡packages/server/src/test.setup.ts733 // Step 1: Generate CSRCOMMENT
LOW⚡packages/server/src/test.setup.ts738 // Step 2: Sign CSR with CACOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts176 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts180 // Step 2: Deploy the botCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts268 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts272 // Step 2: Deploy the botCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts302 // Step 3: Simulate releasing a new version of the lambda layerCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts311 // Step 4: Simulate an error when updating the codeCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts352 // Step 1: Create a bot with no timeout via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts355 // Step 2: Deploy the bot without timeout ... check that default timeout was set on lambdaCOMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts523 // Step 1: Create a bot via admin endpoint (auto-creates ProjectMembership)COMMENT
LOW⚡packages/server/src/cloud/aws/deploy.test.ts527 // Step 2: Initial deploy creates the lambdaCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts221 // Step 3: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts328 // Step 5: Deploy again to trigger the update pathCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts377 // Step 3: Update bot to have to have a timeoutCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts388 // Step 4: Deploy bot againCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts432 // Step 5: Remove timeoutCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts443 // Step 6: Deploy bot for final timeCOMMENT
LOWpackages/server/src/cloud/aws/deploy.test.ts548 // Step 3: Redeploy triggers cleanupCOMMENT
49 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
MEDIUM⚡examples/medplum-local-k8s/deploy-local.sh21 # Define the namespace for FissionCOMMENT
MEDIUM⚡examples/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.sh42# 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 Block80 hits · 80 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…ovider/src/components/meds/quantity-qualifiers.test.ts101 test('buildQualifierMatcher prefers dose-form keywords over strength units regardless of catalog name length', () => {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# otplib - version 13+ requires ESM, holding back until server supports ESMCOMMENT
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…s/react-hooks/src/useResourceBoard/useResourceBoard.ts121 // Latest-ref pattern: expose the freshest options/callbacks to async work (executeLoad)COMMENT
LOW…hooks/src/useQuestionnaireForm/useQuestionnaireForm.ts21 QUESTIONNAIRE_ITEM_CONTROL_URL,COMMENT
LOWpackages/graphiql/src/index.tsx21# high-quality compliant applications. Medplum includes a FHIR server,COMMENT
LOWpackages/server/src/oauth/auth-strategies.test.ts21import { loadTestConfig } from '../config/loader';COMMENT
LOWpackages/server/src/auth/mfa.test.ts2121 //COMMENT
LOWpackages/server/src/auth/mfa.test.ts2281 .type('json')COMMENT
LOWpackages/server/src/workers/subscription.ts241 resource: Resource,COMMENT
LOWpackages/server/src/fhir/operations/utils/find.test.ts221 { start: new Date('2025-11-30T18:30:00Z'), end: new Date('2025-11-30T18:40:00Z') },COMMENT
LOWpackages/server/src/fhir/operations/utils/find.test.ts241 // consistency in scheduling.COMMENT
LOWpackages/agent/DURABLE_QUEUE_ARCHITECTURE.md741 // Bot/server-leg failure: permanent 4xx → rejected (never retried);COMMENT
LOWpackages/agent/src/app.ts181COMMENT
LOWpackages/agent/src/app.ts701 // Start the dispatch-lease loop — it'll attempt acquisition immediately and,COMMENT
LOWpackages/agent/src/app.ts1741 await this.medplum.refreshIfExpired();COMMENT
LOWpackages/agent/src/hl7.ts1061 receivedAt: number;COMMENT
LOWpackages/agent/src/queue/schema.ts161 // `logicalChannelKey` spec (a set of HL7 field paths); the default '' means oneCOMMENT
LOWpackages/agent/src/queue/queries.ts141 * `idx_inbound_channel_state_id`. [index-guarded]COMMENT
LOWpackages/agent/src/queue/durable-queue.ts141 private closed = false;COMMENT
LOWpackages/agent/src/queue/durable-queue.ts161 // and persisting inbound traffic but does not dispatch.COMMENT
LOWpackages/agent/src/queue/durable-queue.ts181COMMENT
LOWpackages/agent/src/queue/worker.test.ts481 expect(warning).toContain('socket gone');COMMENT
LOWpackages/agent/src/queue/integration.test.ts2021 await roundTrip('shift_jis', 'SJIS_0001', 'ヤマダ^タロウ', 'queue-sjis.sqlite');COMMENT
LOWpackages/agent/src/queue/integration.test.ts2341COMMENT
LOWpackages/agent/src/queue/integration.test.ts2501 // the leader calls App.stop(), which drains its workers (settling in-flight rows toCOMMENT
LOWpackages/agent/src/queue/integration.test.ts2721COMMENT
LOWpackages/agent/src/queue/dispatcher.ts201 const key = this.computeKey(row.originalMessage);COMMENT
LOW…docs/src/components/landing/SolutionsHeroAnimation.tsx21// (solutions-content.ts), so the hero matches what the page highlights; when aCOMMENT
LOWpackages/ccda/src/templates.ts81 },COMMENT
LOWpackages/ccda/src/templates.ts101// M) USCDI Data Class/Element: Assessment and Plan of Treatment:COMMENT
20 more matches not shown…
AI Slop Vocabulary17 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUM⚡examples/medplum-local-k8s/deploy-local.sh90# Step 7: Test DNS resolution (robust version)COMMENT
MEDIUMpackages/cdk/src/backend.ts199 // 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
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
LOW⚡examples/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.sh131# 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
Modern AI Meta-Vocabulary5 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMpackages/docs/docs/decision-guides/intake.md204. **[Define completion and follow-up](#completion-and-follow-up).** Decide whether intake needs orchestration or encounCODE
MEDIUMpackages/docs/docs/decision-guides/intake.md47*Why: drives whether intake creates or updates a patient record, when responses get tied to a patient, and whether intakCOMMENT
MEDIUMpackages/docs/docs/decision-guides/intake.md261### Does intake need orchestration and encounter linkage?COMMENT
MEDIUMpackages/docs/docs/decision-guides/intake.md301| Composite completion | Single `Task` per Encounter with `businessStatus` advancing through extraction, eligibility, coCODE
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
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
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMpackages/agent/src/queue/dispatcher.ts200 // ── Partition gate (await-free) ────────────────────────────────────COMMENT
MEDIUMpackages/agent/src/queue/dispatcher.ts216 // ───────────────────────────────────────────────────────────────────COMMENT
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH.agents/skills/comment-compactor/SKILL.md145| Reviewer-facing | `// as requested, this is now extracted into a helper` | Delete CODE