Fixed typo in the docs
This commit is contained in:
parent
7acbfea00d
commit
644885e91a
|
@ -407,7 +407,7 @@ The following algorithms are currently supported:
|
|||
<td>EXTENSION_ANY_ORDER</td>
|
||||
<td>matcher</td>
|
||||
<td>
|
||||
Matches extensions of resources in any order. Matches are made if atleast the two resources shares atleast one extensions that have the same URL and value.
|
||||
Matches extensions of resources in any order. Matches are made if both resources share at least one extensions that have the same URL and value.
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
|
|
|
@ -8,17 +8,17 @@ import org.hl7.fhir.instance.model.api.IBaseHasExtensions;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
public class ExtensionMatcher implements IMdmFieldMatcher{
|
||||
public class ExtensionMatcher implements IMdmFieldMatcher {
|
||||
|
||||
@Override
|
||||
public boolean matches(FhirContext theFhirContext, IBase theLeftBase, IBase theRightBase, boolean theExact, String theIdentifierSystem) {
|
||||
if (!(theLeftBase instanceof IBaseHasExtensions && theRightBase instanceof IBaseHasExtensions)){
|
||||
if (!(theLeftBase instanceof IBaseHasExtensions && theRightBase instanceof IBaseHasExtensions)) {
|
||||
return false;
|
||||
}
|
||||
List<? extends IBaseExtension<?, ?>> leftExtension = ((IBaseHasExtensions) theLeftBase).getExtension();
|
||||
List<? extends IBaseExtension<?, ?>> rightExtension = ((IBaseHasExtensions) theRightBase).getExtension();
|
||||
|
||||
boolean match = false;
|
||||
|
||||
for (IBaseExtension leftExtensionValue : leftExtension) {
|
||||
for (IBaseExtension rightExtensionValue : rightExtension) {
|
||||
match |= ExtensionUtil.equals(leftExtensionValue, rightExtensionValue);
|
||||
|
|
Loading…
Reference in New Issue