ConceptMap updates for 'source-is-narrower-than-target' (formerly 'broader') and 'source-is-broader-than-target' (formerly 'narrower') relationships
This commit is contained in:
parent
60947cb7f4
commit
3a6d03fb7e
|
@ -134,10 +134,10 @@ public class ConceptMap10_50 {
|
||||||
case EQUIVALENT:
|
case EQUIVALENT:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case BROADER:
|
case SOURCENARROWERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.WIDER);
|
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.WIDER);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case SOURCEBROADERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
tgt.setValue(org.hl7.fhir.dstu2.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
||||||
break;
|
break;
|
||||||
case NOTRELATEDTO:
|
case NOTRELATEDTO:
|
||||||
|
@ -165,16 +165,16 @@ public class ConceptMap10_50 {
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case WIDER:
|
case WIDER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case SUBSUMES:
|
case SUBSUMES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case NARROWER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case SPECIALIZES:
|
case SPECIALIZES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case INEXACT:
|
case INEXACT:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
||||||
|
|
|
@ -142,10 +142,10 @@ public class ConceptMap14_50 {
|
||||||
case EQUIVALENT:
|
case EQUIVALENT:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case BROADER:
|
case SOURCENARROWERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.WIDER);
|
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.WIDER);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case SOURCEBROADERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
tgt.setValue(org.hl7.fhir.dstu2016may.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
||||||
break;
|
break;
|
||||||
case NOTRELATEDTO:
|
case NOTRELATEDTO:
|
||||||
|
@ -173,16 +173,16 @@ public class ConceptMap14_50 {
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case WIDER:
|
case WIDER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case SUBSUMES:
|
case SUBSUMES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case NARROWER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case SPECIALIZES:
|
case SPECIALIZES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case INEXACT:
|
case INEXACT:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
||||||
|
|
|
@ -221,10 +221,10 @@ public class ConceptMap30_50 {
|
||||||
case EQUIVALENT:
|
case EQUIVALENT:
|
||||||
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case BROADER:
|
case SOURCENARROWERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.WIDER);
|
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.WIDER);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case SOURCEBROADERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
tgt.setValue(org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
||||||
break;
|
break;
|
||||||
case NOTRELATEDTO:
|
case NOTRELATEDTO:
|
||||||
|
@ -252,16 +252,16 @@ public class ConceptMap30_50 {
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case WIDER:
|
case WIDER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case SUBSUMES:
|
case SUBSUMES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case NARROWER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case SPECIALIZES:
|
case SPECIALIZES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case INEXACT:
|
case INEXACT:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
||||||
|
|
|
@ -262,10 +262,10 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
|
||||||
case EQUIVALENT:
|
case EQUIVALENT:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case BROADER:
|
case SOURCENARROWERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case SOURCEBROADERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
||||||
break;
|
break;
|
||||||
case NOTRELATEDTO:
|
case NOTRELATEDTO:
|
||||||
|
@ -293,16 +293,16 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 {
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case WIDER:
|
case WIDER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case SUBSUMES:
|
case SUBSUMES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case NARROWER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case SPECIALIZES:
|
case SPECIALIZES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case RELATEDTO:
|
case RELATEDTO:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
||||||
|
|
|
@ -457,16 +457,16 @@ public class Enumerations40_50 extends VersionConvertor_40_50 {
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case WIDER:
|
case WIDER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case SUBSUMES:
|
case SUBSUMES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.BROADER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case NARROWER:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case SPECIALIZES:
|
case SPECIALIZES:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.NARROWER);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
break;
|
break;
|
||||||
case INEXACT:
|
case INEXACT:
|
||||||
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship.RELATEDTO);
|
||||||
|
@ -496,10 +496,10 @@ public class Enumerations40_50 extends VersionConvertor_40_50 {
|
||||||
case EQUIVALENT:
|
case EQUIVALENT:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.EQUIVALENT);
|
||||||
break;
|
break;
|
||||||
case BROADER:
|
case SOURCENARROWERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.WIDER);
|
||||||
break;
|
break;
|
||||||
case NARROWER:
|
case SOURCEBROADERTARGET:
|
||||||
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
tgt.setValue(org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence.NARROWER);
|
||||||
break;
|
break;
|
||||||
case NOTRELATEDTO:
|
case NOTRELATEDTO:
|
||||||
|
|
|
@ -1119,10 +1119,10 @@ public class ConceptMap extends CanonicalResource {
|
||||||
protected StringType display;
|
protected StringType display;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).
|
* The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).
|
||||||
*/
|
*/
|
||||||
@Child(name = "relationship", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=false)
|
@Child(name = "relationship", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=false)
|
||||||
@Description(shortDefinition="related-to | equivalent | broader | narrower | not-related-to", formalDefinition="The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source)." )
|
@Description(shortDefinition="related-to | equivalent | source-is-narrower-than-target | source-is-broader-than-target | not-related-to", formalDefinition="The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target)." )
|
||||||
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/concept-map-relationship")
|
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/concept-map-relationship")
|
||||||
protected Enumeration<ConceptMapRelationship> relationship;
|
protected Enumeration<ConceptMapRelationship> relationship;
|
||||||
|
|
||||||
|
@ -1263,7 +1263,7 @@ public class ConceptMap extends CanonicalResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return {@link #relationship} (The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value
|
* @return {@link #relationship} (The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value
|
||||||
*/
|
*/
|
||||||
public Enumeration<ConceptMapRelationship> getRelationshipElement() {
|
public Enumeration<ConceptMapRelationship> getRelationshipElement() {
|
||||||
if (this.relationship == null)
|
if (this.relationship == null)
|
||||||
|
@ -1283,7 +1283,7 @@ public class ConceptMap extends CanonicalResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value {@link #relationship} (The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value
|
* @param value {@link #relationship} (The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).). This is the underlying object with id, value and extensions. The accessor "getRelationship" gives direct access to the value
|
||||||
*/
|
*/
|
||||||
public TargetElementComponent setRelationshipElement(Enumeration<ConceptMapRelationship> value) {
|
public TargetElementComponent setRelationshipElement(Enumeration<ConceptMapRelationship> value) {
|
||||||
this.relationship = value;
|
this.relationship = value;
|
||||||
|
@ -1291,14 +1291,14 @@ public class ConceptMap extends CanonicalResource {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).
|
* @return The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).
|
||||||
*/
|
*/
|
||||||
public ConceptMapRelationship getRelationship() {
|
public ConceptMapRelationship getRelationship() {
|
||||||
return this.relationship == null ? null : this.relationship.getValue();
|
return this.relationship == null ? null : this.relationship.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param value The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).
|
* @param value The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).
|
||||||
*/
|
*/
|
||||||
public TargetElementComponent setRelationship(ConceptMapRelationship value) {
|
public TargetElementComponent setRelationship(ConceptMapRelationship value) {
|
||||||
if (this.relationship == null)
|
if (this.relationship == null)
|
||||||
|
@ -1466,7 +1466,7 @@ public class ConceptMap extends CanonicalResource {
|
||||||
super.listChildren(children);
|
super.listChildren(children);
|
||||||
children.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code));
|
children.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code));
|
||||||
children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display));
|
children.add(new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display));
|
||||||
children.add(new Property("relationship", "code", "The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).", 0, 1, relationship));
|
children.add(new Property("relationship", "code", "The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).", 0, 1, relationship));
|
||||||
children.add(new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment));
|
children.add(new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment));
|
||||||
children.add(new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn));
|
children.add(new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn));
|
||||||
children.add(new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the relationship (e.g., equivalent) cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product));
|
children.add(new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the relationship (e.g., equivalent) cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product));
|
||||||
|
@ -1477,7 +1477,7 @@ public class ConceptMap extends CanonicalResource {
|
||||||
switch (_hash) {
|
switch (_hash) {
|
||||||
case 3059181: /*code*/ return new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code);
|
case 3059181: /*code*/ return new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, 1, code);
|
||||||
case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display);
|
case 1671764162: /*display*/ return new Property("display", "string", "The display for the code. The display is only provided to help editors when editing the concept map.", 0, 1, display);
|
||||||
case -261851592: /*relationship*/ return new Property("relationship", "code", "The relationship between the source and target concepts. The relationship is read from target to source (e.g. the target is 'broader' than the source).", 0, 1, relationship);
|
case -261851592: /*relationship*/ return new Property("relationship", "code", "The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target).", 0, 1, relationship);
|
||||||
case 950398559: /*comment*/ return new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment);
|
case 950398559: /*comment*/ return new Property("comment", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, 1, comment);
|
||||||
case -1109214266: /*dependsOn*/ return new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn);
|
case -1109214266: /*dependsOn*/ return new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn);
|
||||||
case -309474065: /*product*/ return new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the relationship (e.g., equivalent) cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product);
|
case -309474065: /*product*/ return new Property("product", "@ConceptMap.group.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the relationship (e.g., equivalent) cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product);
|
||||||
|
|
|
@ -1805,13 +1805,13 @@ public class Enumerations {
|
||||||
*/
|
*/
|
||||||
EQUIVALENT,
|
EQUIVALENT,
|
||||||
/**
|
/**
|
||||||
* The target concept is broader in meaning than the source concept.
|
* The source concept is narrower in meaning than the target concept.
|
||||||
*/
|
*/
|
||||||
BROADER,
|
SOURCENARROWERTARGET,
|
||||||
/**
|
/**
|
||||||
* The target concept is narrower in meaning than the source concept.
|
* The source concept is broader in meaning than the target concept.
|
||||||
*/
|
*/
|
||||||
NARROWER,
|
SOURCEBROADERTARGET,
|
||||||
/**
|
/**
|
||||||
* This is an explicit assertion that the target concept is not related to the source concept.
|
* This is an explicit assertion that the target concept is not related to the source concept.
|
||||||
*/
|
*/
|
||||||
|
@ -1827,10 +1827,10 @@ public class Enumerations {
|
||||||
return RELATEDTO;
|
return RELATEDTO;
|
||||||
if ("equivalent".equals(codeString))
|
if ("equivalent".equals(codeString))
|
||||||
return EQUIVALENT;
|
return EQUIVALENT;
|
||||||
if ("broader".equals(codeString))
|
if ("source-is-narrower-than-target".equals(codeString))
|
||||||
return BROADER;
|
return SOURCENARROWERTARGET;
|
||||||
if ("narrower".equals(codeString))
|
if ("source-is-broader-than-target".equals(codeString))
|
||||||
return NARROWER;
|
return SOURCEBROADERTARGET;
|
||||||
if ("not-related-to".equals(codeString))
|
if ("not-related-to".equals(codeString))
|
||||||
return NOTRELATEDTO;
|
return NOTRELATEDTO;
|
||||||
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
||||||
|
@ -1839,8 +1839,8 @@ public class Enumerations {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case RELATEDTO: return "related-to";
|
case RELATEDTO: return "related-to";
|
||||||
case EQUIVALENT: return "equivalent";
|
case EQUIVALENT: return "equivalent";
|
||||||
case BROADER: return "broader";
|
case SOURCENARROWERTARGET: return "source-is-narrower-than-target";
|
||||||
case NARROWER: return "narrower";
|
case SOURCEBROADERTARGET: return "source-is-broader-than-target";
|
||||||
case NOTRELATEDTO: return "not-related-to";
|
case NOTRELATEDTO: return "not-related-to";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -1849,8 +1849,8 @@ public class Enumerations {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case RELATEDTO: return "http://hl7.org/fhir/concept-map-relationship";
|
case RELATEDTO: return "http://hl7.org/fhir/concept-map-relationship";
|
||||||
case EQUIVALENT: return "http://hl7.org/fhir/concept-map-relationship";
|
case EQUIVALENT: return "http://hl7.org/fhir/concept-map-relationship";
|
||||||
case BROADER: return "http://hl7.org/fhir/concept-map-relationship";
|
case SOURCENARROWERTARGET: return "http://hl7.org/fhir/concept-map-relationship";
|
||||||
case NARROWER: return "http://hl7.org/fhir/concept-map-relationship";
|
case SOURCEBROADERTARGET: return "http://hl7.org/fhir/concept-map-relationship";
|
||||||
case NOTRELATEDTO: return "http://hl7.org/fhir/concept-map-relationship";
|
case NOTRELATEDTO: return "http://hl7.org/fhir/concept-map-relationship";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -1859,8 +1859,8 @@ public class Enumerations {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case RELATEDTO: return "The concepts are related to each other, but the exact relationship is not known.";
|
case RELATEDTO: return "The concepts are related to each other, but the exact relationship is not known.";
|
||||||
case EQUIVALENT: return "The definitions of the concepts mean the same thing.";
|
case EQUIVALENT: return "The definitions of the concepts mean the same thing.";
|
||||||
case BROADER: return "The target concept is broader in meaning than the source concept.";
|
case SOURCENARROWERTARGET: return "The source concept is narrower in meaning than the target concept.";
|
||||||
case NARROWER: return "The target concept is narrower in meaning than the source concept.";
|
case SOURCEBROADERTARGET: return "The source concept is broader in meaning than the target concept.";
|
||||||
case NOTRELATEDTO: return "This is an explicit assertion that the target concept is not related to the source concept.";
|
case NOTRELATEDTO: return "This is an explicit assertion that the target concept is not related to the source concept.";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -1869,8 +1869,8 @@ public class Enumerations {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case RELATEDTO: return "Related To";
|
case RELATEDTO: return "Related To";
|
||||||
case EQUIVALENT: return "Equivalent";
|
case EQUIVALENT: return "Equivalent";
|
||||||
case BROADER: return "Broader";
|
case SOURCENARROWERTARGET: return "Source Is Narrower Than Target";
|
||||||
case NARROWER: return "Narrower";
|
case SOURCEBROADERTARGET: return "Source Is Broader Than Target";
|
||||||
case NOTRELATEDTO: return "Not Related To";
|
case NOTRELATEDTO: return "Not Related To";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
@ -1886,10 +1886,10 @@ public class Enumerations {
|
||||||
return ConceptMapRelationship.RELATEDTO;
|
return ConceptMapRelationship.RELATEDTO;
|
||||||
if ("equivalent".equals(codeString))
|
if ("equivalent".equals(codeString))
|
||||||
return ConceptMapRelationship.EQUIVALENT;
|
return ConceptMapRelationship.EQUIVALENT;
|
||||||
if ("broader".equals(codeString))
|
if ("source-is-narrower-than-target".equals(codeString))
|
||||||
return ConceptMapRelationship.BROADER;
|
return ConceptMapRelationship.SOURCENARROWERTARGET;
|
||||||
if ("narrower".equals(codeString))
|
if ("source-is-broader-than-target".equals(codeString))
|
||||||
return ConceptMapRelationship.NARROWER;
|
return ConceptMapRelationship.SOURCEBROADERTARGET;
|
||||||
if ("not-related-to".equals(codeString))
|
if ("not-related-to".equals(codeString))
|
||||||
return ConceptMapRelationship.NOTRELATEDTO;
|
return ConceptMapRelationship.NOTRELATEDTO;
|
||||||
throw new IllegalArgumentException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
throw new IllegalArgumentException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
||||||
|
@ -1906,10 +1906,10 @@ public class Enumerations {
|
||||||
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.RELATEDTO);
|
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.RELATEDTO);
|
||||||
if ("equivalent".equals(codeString))
|
if ("equivalent".equals(codeString))
|
||||||
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.EQUIVALENT);
|
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.EQUIVALENT);
|
||||||
if ("broader".equals(codeString))
|
if ("source-is-narrower-than-target".equals(codeString))
|
||||||
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.BROADER);
|
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.SOURCENARROWERTARGET);
|
||||||
if ("narrower".equals(codeString))
|
if ("source-is-broader-than-target".equals(codeString))
|
||||||
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.NARROWER);
|
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.SOURCEBROADERTARGET);
|
||||||
if ("not-related-to".equals(codeString))
|
if ("not-related-to".equals(codeString))
|
||||||
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.NOTRELATEDTO);
|
return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.NOTRELATEDTO);
|
||||||
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'");
|
||||||
|
@ -1919,10 +1919,10 @@ public class Enumerations {
|
||||||
return "related-to";
|
return "related-to";
|
||||||
if (code == ConceptMapRelationship.EQUIVALENT)
|
if (code == ConceptMapRelationship.EQUIVALENT)
|
||||||
return "equivalent";
|
return "equivalent";
|
||||||
if (code == ConceptMapRelationship.BROADER)
|
if (code == ConceptMapRelationship.SOURCENARROWERTARGET)
|
||||||
return "broader";
|
return "source-is-narrower-than-target";
|
||||||
if (code == ConceptMapRelationship.NARROWER)
|
if (code == ConceptMapRelationship.SOURCEBROADERTARGET)
|
||||||
return "narrower";
|
return "source-is-broader-than-target";
|
||||||
if (code == ConceptMapRelationship.NOTRELATEDTO)
|
if (code == ConceptMapRelationship.NOTRELATEDTO)
|
||||||
return "not-related-to";
|
return "not-related-to";
|
||||||
return "?";
|
return "?";
|
||||||
|
|
|
@ -304,10 +304,10 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
||||||
return "is related to";
|
return "is related to";
|
||||||
} else if ("equivalent".equals(code)) {
|
} else if ("equivalent".equals(code)) {
|
||||||
return "is equivalent to";
|
return "is equivalent to";
|
||||||
} else if ("broader".equals(code)) {
|
} else if ("source-is-narrower-than-target".equals(code)) {
|
||||||
return "maps to wider concept";
|
return "maps to wider concept";
|
||||||
} else if ("narrower".equals(code)) {
|
} else if ("source-is-broader-than-target".equals(code)) {
|
||||||
return "maps to narrower concept";
|
return "maps to source-is-broader-than-target concept";
|
||||||
} else if ("not-related-to".equals(code)) {
|
} else if ("not-related-to".equals(code)) {
|
||||||
return "is not related to";
|
return "is not related to";
|
||||||
} else {
|
} else {
|
||||||
|
@ -326,8 +326,8 @@ public class ConceptMapRenderer extends TerminologyRenderer {
|
||||||
return "maps to wider concept";
|
return "maps to wider concept";
|
||||||
} else if ("subsumes".equals(code)) {
|
} else if ("subsumes".equals(code)) {
|
||||||
return "is subsumed by";
|
return "is subsumed by";
|
||||||
} else if ("narrower".equals(code)) {
|
} else if ("source-is-broader-than-target".equals(code)) {
|
||||||
return "maps to narrower concept";
|
return "maps to source-is-broader-than-target concept";
|
||||||
} else if ("specializes".equals(code)) {
|
} else if ("specializes".equals(code)) {
|
||||||
return "has specialization";
|
return "has specialization";
|
||||||
} else if ("inexact".equals(code)) {
|
} else if ("inexact".equals(code)) {
|
||||||
|
|
|
@ -283,8 +283,8 @@ public class TerminologyRenderer {
|
||||||
return "";
|
return "";
|
||||||
switch (mapping.getRelationship()) {
|
switch (mapping.getRelationship()) {
|
||||||
case EQUIVALENT : return "~";
|
case EQUIVALENT : return "~";
|
||||||
case BROADER : return "<";
|
case SOURCENARROWERTARGET : return "<";
|
||||||
case NARROWER : return ">";
|
case SOURCEBROADERTARGET : return ">";
|
||||||
case NOTRELATEDTO : return "!=";
|
case NOTRELATEDTO : return "!=";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,8 +358,8 @@ public class StructureMapUtilities {
|
||||||
case RELATEDTO: return "-";
|
case RELATEDTO: return "-";
|
||||||
case EQUIVALENT: return "==";
|
case EQUIVALENT: return "==";
|
||||||
case NOTRELATEDTO: return "!=";
|
case NOTRELATEDTO: return "!=";
|
||||||
case BROADER: return "<=";
|
case SOURCENARROWERTARGET: return "<=";
|
||||||
case NARROWER: return ">=";
|
case SOURCEBROADERTARGET: return ">=";
|
||||||
default: return "??";
|
default: return "??";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -826,9 +826,9 @@ public class StructureMapUtilities {
|
||||||
if (token.equals("!="))
|
if (token.equals("!="))
|
||||||
return ConceptMapRelationship.NOTRELATEDTO;
|
return ConceptMapRelationship.NOTRELATEDTO;
|
||||||
if (token.equals("<="))
|
if (token.equals("<="))
|
||||||
return ConceptMapRelationship.BROADER;
|
return ConceptMapRelationship.SOURCENARROWERTARGET;
|
||||||
if (token.equals(">="))
|
if (token.equals(">="))
|
||||||
return ConceptMapRelationship.NARROWER;
|
return ConceptMapRelationship.SOURCEBROADERTARGET;
|
||||||
throw lexer.error("Unknown relationship token '"+token+"'");
|
throw lexer.error("Unknown relationship token '"+token+"'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2121,7 +2121,7 @@ public class StructureMapUtilities {
|
||||||
message = "Concept map "+su+" found no translation for "+src.getCode();
|
message = "Concept map "+su+" found no translation for "+src.getCode();
|
||||||
else {
|
else {
|
||||||
for (TargetElementComponent tgt : list.get(0).comp.getTarget()) {
|
for (TargetElementComponent tgt : list.get(0).comp.getTarget()) {
|
||||||
if (tgt.getRelationship() == null || EnumSet.of( ConceptMapRelationship.RELATEDTO , ConceptMapRelationship.EQUIVALENT, ConceptMapRelationship.BROADER).contains(tgt.getRelationship())) {
|
if (tgt.getRelationship() == null || EnumSet.of( ConceptMapRelationship.RELATEDTO , ConceptMapRelationship.EQUIVALENT, ConceptMapRelationship.SOURCENARROWERTARGET).contains(tgt.getRelationship())) {
|
||||||
if (done) {
|
if (done) {
|
||||||
message = "Concept map "+su+" found multiple matches for "+src.getCode();
|
message = "Concept map "+su+" found multiple matches for "+src.getCode();
|
||||||
done = false;
|
done = false;
|
||||||
|
|
Loading…
Reference in New Issue