package com.google.fhirengine.index;

import com.google.auto.value.AutoValue;

/** An code index for a specific resource. */
@AutoValue
public abstract class CodeIndex {
  public static CodeIndex create(String name, String path, String value) {
    return new AutoValue_CodeIndex(name, path, value);
  }

  /** The name of the code index, e.g. "code". */
  public abstract String name();

  /** The path of the code index, e.g. "Observation.code". */
  public abstract String path();

  /** The code of the code index, e.g. "1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". */
  public abstract String value();

  /** The system of the code index, e.g. "http://openmrs.org/concepts". */
  public abstract String system();
}

@@ -229,20 +229,34 @@
  String 
-valu
+system, String cod
 e) %7B%0A   
@@ -299,20 +299,27 @@
 , path, 
-valu
+system, cod
 e);%0A  %7D%0A
@@ -509,20 +509,22 @@
 /** The 
-code
+system
  of the 
@@ -545,44 +545,35 @@
 g. %22
-1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+http://openmrs.org/concepts
 %22. *
@@ -599,21 +599,22 @@
  String 
-value
+system
 ();%0A%0A  /
@@ -612,38 +612,36 @@
 m();%0A%0A  /** The 
-system
+code
  of the code ind
@@ -654,35 +654,44 @@
 g. %22
-http://openmrs.org/concepts
+1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
 %22. *
@@ -713,24 +713,22 @@
 ract String 
-system
+code
 ();%0A%7D%0A

Correct the CodeIndex's constructor