More consistent version management in TerminologyCache
This commit is contained in:
parent
cf188cd156
commit
33cdfffa55
|
@ -186,11 +186,13 @@ public class TerminologyCache {
|
||||||
|
|
||||||
public CacheToken generateValidationToken(ValidationOptions options, Coding code, ValueSet vs) {
|
public CacheToken generateValidationToken(ValidationOptions options, Coding code, ValueSet vs) {
|
||||||
CacheToken ct = new CacheToken();
|
CacheToken ct = new CacheToken();
|
||||||
if (code.hasSystem())
|
if (code.hasSystem()) {
|
||||||
ct.name = getNameForSystem(code.getSystem());
|
ct.name = getNameForSystem(code.getSystem());
|
||||||
|
ct.hasVersion = code.hasVersion();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
ct.name = NAME_FOR_NO_SYSTEM;
|
ct.name = NAME_FOR_NO_SYSTEM;
|
||||||
ct.hasVersion = code.hasVersion();
|
|
||||||
JsonParser json = new JsonParser();
|
JsonParser json = new JsonParser();
|
||||||
json.setOutputStyle(OutputStyle.PRETTY);
|
json.setOutputStyle(OutputStyle.PRETTY);
|
||||||
ValueSet vsc = getVSEssense(vs);
|
ValueSet vsc = getVSEssense(vs);
|
||||||
|
@ -216,10 +218,11 @@ public class TerminologyCache {
|
||||||
public CacheToken generateValidationToken(ValidationOptions options, CodeableConcept code, ValueSet vs) {
|
public CacheToken generateValidationToken(ValidationOptions options, CodeableConcept code, ValueSet vs) {
|
||||||
CacheToken ct = new CacheToken();
|
CacheToken ct = new CacheToken();
|
||||||
for (Coding c : code.getCoding()) {
|
for (Coding c : code.getCoding()) {
|
||||||
if (c.hasSystem())
|
if (c.hasSystem()) {
|
||||||
ct.setName(getNameForSystem(c.getSystem()));
|
ct.setName(getNameForSystem(c.getSystem()));
|
||||||
ct.hasVersion = c.hasVersion();
|
ct.hasVersion = c.hasVersion();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
JsonParser json = new JsonParser();
|
JsonParser json = new JsonParser();
|
||||||
json.setOutputStyle(OutputStyle.PRETTY);
|
json.setOutputStyle(OutputStyle.PRETTY);
|
||||||
ValueSet vsc = getVSEssense(vs);
|
ValueSet vsc = getVSEssense(vs);
|
||||||
|
|
Loading…
Reference in New Issue