aws-samples / amazon-comprehend-medical-fhir-integration
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 77 units with 2,817 lines of code in units (82.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (32 lines of code)
    • 76 very simple units (2,785 lines of code)
0% | 0% | 0% | 1% | 98%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
java0% | 0% | 0% | 1% | 98%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/com/amazonaws/lab0% | 0% | 0% | 1% | 98%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public void readBundleFHIRPayload()
in src/com/amazonaws/lab/CMUtil.java
32 6 1
public Map handleRequest()
in src/com/amazonaws/lab/HL7DataHandler.java
50 5 2
public String parseHL7Payload()
in src/com/amazonaws/lab/HL7DataHandler.java
40 5 1
public String getS3ObjectContentAsString()
in src/com/amazonaws/lab/HL7DataHandler.java
18 5 2
private ArrayList getNotesFromBundle()
in src/com/amazonaws/lab/FHIRDataHandler.java
20 4 1
public Void handleRequest()
in src/com/amazonaws/lab/HealthDataEventHandler.java
36 4 2
public CMData readCMOutput()
in src/com/amazonaws/lab/SendToCMUtil.java
22 3 1
public CMData readCMOutput()
in src/com/amazonaws/lab/CMUtil.java
19 3 1
public void readFHIRPayload()
in src/com/amazonaws/lab/CMUtil.java
22 3 1
private Patient getPatientResourceFromBundle()
in src/com/amazonaws/lab/FHIRDataHandler.java
12 3 1
public String putS3ObjectContentAsString()
in src/com/amazonaws/lab/FHIRDataHandler.java
10 3 3
public String putS3ObjectContentAsString()
in src/com/amazonaws/lab/HL7DataHandler.java
10 3 3
public Map handleRequest()
in src/com/amazonaws/lab/HealthDataRouter.java
19 3 2
public static void main()
in src/com/amazonaws/lab/CMUtil.java
2235 2 1
private ArrayList getNotesFromDocument()
in src/com/amazonaws/lab/FHIRDataHandler.java
13 2 1
public void initEntityTextList()
in src/com/amazonaws/lab/CMData.java
6 2 0
public Map handleRequest()
in src/com/amazonaws/lab/SendToCM.java
20 1 2
public static void main()
in src/com/amazonaws/lab/SendToCMUtil.java
4 1 1
public String getName()
in src/com/amazonaws/lab/Trait.java
3 1 0
public void setName()
in src/com/amazonaws/lab/Trait.java
3 1 1