All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.r4.fhirpath.FHIRPathConstant Maven / Gradle / Ivy

Go to download

Builds the hapi fhir r4. Requires hapi-fhir-base and hapi-fhir-utilities be built first and be excluded from any other poms requiring it.

The newest version!
package org.hl7.fhir.r4.fhirpath;

import org.hl7.fhir.utilities.Utilities;

public class FHIRPathConstant {

  public static boolean isFHIRPathConstant(String string) {
    return !Utilities.noString(string) && ((string.charAt(0) == '\'' || string.charAt(0) == '"')
        || string.charAt(0) == '@' || string.charAt(0) == '%' || string.charAt(0) == '-' || string.charAt(0) == '+'
        || (string.charAt(0) >= '0' && string.charAt(0) <= '9') || string.equals("true") || string.equals("false")
        || string.equals("{}"));
  }

  public static boolean isFHIRPathFixedName(String string) {
    return string != null && (string.charAt(0) == '`');
  }

  public static boolean isFHIRPathStringConstant(String string) {
    return string.charAt(0) == '\'' || string.charAt(0) == '"' || string.charAt(0) == '`';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy