microsoft / fhir-server
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 1,083 files with 54,970 lines of code.
    • 0 very long files (0 lines of code)
    • 6 long files (3,752 lines of code)
    • 39 medium size files (11,592 lines of codeclsfd_ftr_w_mp_ins)
    • 79 small files (10,772 lines of code)
    • 959 very small files (28,854 lines of code)
0% | 6% | 21% | 19% | 52%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cs0% | 7% | 21% | 18% | 52%
yml0% | 0% | 17% | 41% | 41%
js0% | 0% | 0% | 60% | 39%
ps10% | 0% | 0% | 23% | 76%
props0% | 0% | 0% | 0% | 100%
shproj0% | 0% | 0% | 0% | 100%
cshtml0% | 0% | 0% | 0% | 100%
psd10% | 0% | 0% | 0% | 100%
psm10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Microsoft.Health.Fhir.SqlServer0% | 13% | 22% | 11% | 51%
src/Microsoft.Health.Fhir.Core0% | 6% | 19% | 13% | 60%
src/Microsoft.Health.Fhir.CosmosDb0% | 9% | 25% | 28% | 36%
src/Microsoft.Health.Fhir.Shared.Api0% | 9% | 15% | 42% | 32%
src/Microsoft.Health.Fhir.Shared.Core0% | 0% | 25% | 20% | 54%
src/Microsoft.Health.Fhir.Api0% | 0% | 27% | 0% | 72%
src/Microsoft.Health.Fhir.Azure0% | 0% | 31% | 23% | 44%
src/Microsoft.Health.Fhir.Shared.Client0% | 0% | 65% | 0% | 34%
build0% | 0% | 33% | 42% | 24%
build/jobs0% | 0% | 0% | 39% | 60%
src/Microsoft.Health.Extensions.Xunit0% | 0% | 0% | 57% | 42%
src/Microsoft.Health.Fhir.Shared.Web0% | 0% | 0% | 54% | 45%
src/Microsoft.Health.TaskManagement0% | 0% | 0% | 44% | 55%
release/scripts0% | 0% | 0% | 25% | 75%
src/Microsoft.Health.Fhir.ValueSets0% | 0% | 0% | 0% | 100%
tools/FhirAnalyzer0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
tools/PowerShell0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R4.Core0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R5.Core0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.Stu3.Core0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R4.Api0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R5.Api0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.Stu3.Api0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R4.Client0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.R5.Client0% | 0% | 0% | 0% | 100%
src/Microsoft.Health.Fhir.Stu3.Client0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
SqlQueryGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search/Expressions/Visitors/QueryGenerators
928 27
ReindexJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Reindex
628 15
ExportJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Export
590 16
FhirCosmosSearchService.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Search
587 10
SqlServerSearchService.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search
518 9
BundleHandler.cs
in src/Microsoft.Health.Fhir.Shared.Api/Features/Resources/Bundle
501 13
PatientEverythingService.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Operations/Everything
456 11
ImportOrchestratorTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Import
454 13
SqlServerFhirDataStore.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
440 9
CosmosFhirDataStore.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Storage
412 9
FhirClient.cs
in src/Microsoft.Health.Fhir.Shared.Client
398 18
pr-pipeline.yml
in build
377 -
ExpressionQueryBuilder.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Search/Queries
370 23
FhirController.cs
in src/Microsoft.Health.Fhir.Shared.Api/Controllers
367 25
SqlServerFhirModel.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
367 18
SearchOptionsFactory.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Search
352 3
SqlImportOperation.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import
347 11
SqlResourceBulkImporter.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import
347 9
AadSmartOnFhirProxyController.cs
in src/Microsoft.Health.Fhir.Api/Controllers
344 5
CosmosFhirOperationDataStore.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/Operations
343 9
SearchParameterToTypeResolver.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Search/Parameters
342 16
SearchValueExpressionBuilderHelper.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions/Parsers
312 6
CapabilityStatementBuilder.cs
in src/Microsoft.Health.Fhir.Core/Features/Conformance
311 15
SqlServerFhirOperationDataStore.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
310 12
PartialDateTime.cs
in src/Microsoft.Health.Fhir.Core/Models
287 6
ExpressionParser.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions/Parsers
281 9
SearchParameterDefinitionBuilder.cs
in src/Microsoft.Health.Fhir.Core/Features/Definition
274 8
OperationOutcomeExceptionFilterAttribute.cs
in src/Microsoft.Health.Fhir.Shared.Api/Features/Filters
259 3
UrlResolver.cs
in src/Microsoft.Health.Fhir.Api/Features/Routing
254 9
NarrativeHtmlSanitizer.cs
in src/Microsoft.Health.Fhir.Core/Features/Validation/Narratives
247 5
SqlServerTaskConsumer.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
247 4
AzureExportDestinationClient.cs
in src/Microsoft.Health.Fhir.Azure/ExportDestinationClient
237 13
ExportController.cs
in src/Microsoft.Health.Fhir.Shared.Api/Controllers
236 10
TypedElementSearchIndexer.cs
in src/Microsoft.Health.Fhir.Core/Features/Search
232 6
SearchParameterDefinitionManager.cs
in src/Microsoft.Health.Fhir.Core/Features/Definition
230 17
SearchParameterExpressionParser.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions/Parsers
227 4
ThrottlingMiddleware.cs
in src/Microsoft.Health.Fhir.Api/Features/Throttling
225 6
QueryBuilder.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Search/Queries
225 11
SearchParameterQueryGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search/Expressions/Visitors/QueryGenerators
225 12
SearchParameterOperations.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Parameters
221 7
ImportProcessingTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Import
218 8
AzureBlobIntegrationDataStoreClient.cs
in src/Microsoft.Health.Fhir.Azure/IntegrationDataStore
211 13
CosmosResponseProcessor.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Storage
203 7
SearchParameterStatusManager.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Registry
202 8
FhirServerBuilderSqlServerRegistrationExtensions.cs
in src/Microsoft.Health.Fhir.SqlServer/Registration
202 2
FhirServerBuilderCosmosDbRegistrationExtensions.cs
in src/Microsoft.Health.Fhir.CosmosDb/Registration
200 4
ReindexController.cs
in src/Microsoft.Health.Fhir.Shared.Api/Controllers
198 10
SqlServerSearchParameterStatusDataStore.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage/Registry
192 3
ci-pipeline.yml
in build
185 -
CustomXunitTestFrameworkExecutor.cs
in src/Microsoft.Health.Extensions.Xunit
177 13
Files With Most Units (Top 20)
File# lines# units
SqlQueryGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search/Expressions/Visitors/QueryGenerators
928 27
FhirController.cs
in src/Microsoft.Health.Fhir.Shared.Api/Controllers
367 25
Expression.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions
110 24
ExpressionQueryBuilder.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Search/Queries
370 23
FhirClient.cs
in src/Microsoft.Health.Fhir.Shared.Client
398 18
SqlServerFhirModel.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
367 18
SearchParameterDefinitionManager.cs
in src/Microsoft.Health.Fhir.Core/Features/Definition
230 17
ExportJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Export
590 16
SearchParameterToTypeResolver.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Search/Parameters
342 16
CapabilityStatementBuilder.cs
in src/Microsoft.Health.Fhir.Core/Features/Conformance
311 15
ReindexJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Reindex
628 15
ExpressionRewriter.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions
128 15
SearchParamTableExpressionQueryGeneratorFactory.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search/Expressions/Visitors
153 15
CustomXunitTestFrameworkExecutor.cs
in src/Microsoft.Health.Extensions.Xunit
177 13
AzureExportDestinationClient.cs
in src/Microsoft.Health.Fhir.Azure/ExportDestinationClient
237 13
AzureBlobIntegrationDataStoreClient.cs
in src/Microsoft.Health.Fhir.Azure/IntegrationDataStore
211 13
SearchableSearchParameterDefinitionManager.cs
in src/Microsoft.Health.Fhir.Core/Features/Definition
119 13
ImportOrchestratorTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Import
454 13
BundleHandler.cs
in src/Microsoft.Health.Fhir.Shared.Api/Features/Resources/Bundle
501 13
FhirMediatorExtensions.cs
in src/Microsoft.Health.Fhir.Shared.Core/Extensions
107 13
Files With Long Lines (Top 20)

There are 528 files with lines longer than 120 characters. In total, there are 2760 long lines.

File# lines# units# long lines
SqlQueryGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search/Expressions/Visitors/QueryGenerators
928 27 91
SqlImportOperation.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import
347 11 61
ExportJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Export
590 16 48
FhirCosmosSearchService.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Search
587 10 48
SqlResourceBulkImporter.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import
347 9 47
SqlServerFhirDataStore.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
440 9 46
SqlServerSearchService.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Search
518 9 37
FhirClient.cs
in src/Microsoft.Health.Fhir.Shared.Client
398 18 34
SqlServerFhirOperationDataStore.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Storage
310 12 32
ReindexJobTask.cs
in src/Microsoft.Health.Fhir.Core/Features/Operations/Reindex
628 15 31
CosmosFhirDataStore.cs
in src/Microsoft.Health.Fhir.CosmosDb/Features/Storage
412 9 30
PatientEverythingService.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Operations/Everything
456 11 30
SearchOptionsFactory.cs
in src/Microsoft.Health.Fhir.Shared.Core/Features/Search
352 3 27
TokenNumberNumberCompositeSearchParamsTableBulkCopyDataGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import/DataGenerator
69 5 26
ExpressionParser.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Expressions/Parsers
281 9 24
TokenQuantityCompositeSearchParamsTableBulkCopyDataGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import/DataGenerator
65 5 22
FhirController.cs
in src/Microsoft.Health.Fhir.Shared.Api/Controllers
367 25 20
FhirMediatorExtensions.cs
in src/Microsoft.Health.Fhir.Shared.Core/Extensions
107 13 20
ReferenceTokenCompositeSearchParamsTableBulkCopyDataGenerator.cs
in src/Microsoft.Health.Fhir.SqlServer/Features/Operations/Import/DataGenerator
63 5 19
SearchParameterOperations.cs
in src/Microsoft.Health.Fhir.Core/Features/Search/Parameters
221 7 18