--- type: "codesystem" title: "Search Comparator" codesystem: "search-comparator" --- # Search Comparator - **Official URL**: http://hl7.org/fhir/search-comparator - **Version**: 6.0.0 - **Status**: active - **Name**: SearchComparator - **Title**: Search Comparator - **Publisher**: HL7 (FHIR Project) - **Description**: What Search Comparator Codes are supported in search. - **Case Sensitive**: true - **Content**: complete ## Concepts | Code | Display | Definition | | --- | --- | --- | | eq | Equals | the value for the parameter in the resource is equal to the provided value. | | ne | Not Equals | the value for the parameter in the resource is not equal to the provided value. | | gt | Greater Than | the value for the parameter in the resource is greater than the provided value. | | lt | Less Than | the value for the parameter in the resource is less than the provided value. | | ge | Greater or Equals | the value for the parameter in the resource is greater or equal to the provided value. | | le | Less of Equal | the value for the parameter in the resource is less or equal to the provided value. | | sa | Starts After | the value for the parameter in the resource starts after the provided value. | | eb | Ends Before | the value for the parameter in the resource ends before the provided value. | | ap | Approximately | the value for the parameter in the resource is approximately the same to the provided value. | ## CodeSystem XML ```xml <status value="active"/> <experimental value="false"/> <date value="2021-01-05T10:01:24+11:00"/> <publisher value="HL7 (FHIR Project)"/> <contact> <telecom> <system value="url"/> <value value="http://hl7.org/fhir"/> </telecom> <telecom> <system value="email"/> <value value="fhir@lists.hl7.org"/> </telecom> </contact> <description value="What Search Comparator Codes are supported in search."/> <caseSensitive value="true"/> <valueSet value="http://hl7.org/fhir/ValueSet/search-comparator"/> <content value="complete"/> <concept> <code value="eq"/> <display value="Equals"/> <definition value="the value for the parameter in the resource is equal to the provided value."/> </concept> <concept> <code value="ne"/> <display value="Not Equals"/> <definition value="the value for the parameter in the resource is not equal to the provided value."/> </concept> <concept> <code value="gt"/> <display value="Greater Than"/> <definition value="the value for the parameter in the resource is greater than the provided value."/> </concept> <concept> <code value="lt"/> <display value="Less Than"/> <definition value="the value for the parameter in the resource is less than the provided value."/> </concept> <concept> <code value="ge"/> <display value="Greater or Equals"/> <definition value="the value for the parameter in the resource is greater or equal to the provided value."/> </concept> <concept> <code value="le"/> <display value="Less of Equal"/> <definition value="the value for the parameter in the resource is less or equal to the provided value."/> </concept> <concept> <code value="sa"/> <display value="Starts After"/> <definition value="the value for the parameter in the resource starts after the provided value."/> </concept> <concept> <code value="eb"/> <display value="Ends Before"/> <definition value="the value for the parameter in the resource ends before the provided value."/> </concept> <concept> <code value="ap"/> <display value="Approximately"/> <definition value="the value for the parameter in the resource is approximately the same to the provided value."/> </concept> </CodeSystem> ```