track OID status

This commit is contained in:
Grahame Grieve 2024-10-24 07:16:36 +10:30
parent 89be42a649
commit a632594a67
2 changed files with 12 additions and 6 deletions

View File

@ -499,7 +499,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
if (!oidCacheManual.containsKey(s)) { if (!oidCacheManual.containsKey(s)) {
oidCacheManual.put(s, new HashSet<>()); oidCacheManual.put(s, new HashSet<>());
} }
oidCacheManual.get(s).add(new OIDDefinition(r.fhirType(), s, url, ((CanonicalResource) r).getVersion(), null)); oidCacheManual.get(s).add(new OIDDefinition(r.fhirType(), s, url, ((CanonicalResource) r).getVersion(), null, null));
} }
} }
} }
@ -3189,7 +3189,8 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
String rt = rs.getString(1); String rt = rs.getString(1);
String url = rs.getString(2); String url = rs.getString(2);
String version = rs.getString(3); String version = rs.getString(3);
summary.addOID(new OIDDefinition(rt, oid, url, version, os.pid)); String status = rs.getString(4);
summary.addOID(new OIDDefinition(rt, oid, url, version, os.pid, status));
} }
} }
} catch (Exception e) { } catch (Exception e) {
@ -3201,13 +3202,13 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
switch (oid) { switch (oid) {
case "2.16.840.1.113883.6.1" : case "2.16.840.1.113883.6.1" :
summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.1", "http://loinc.org", null, null)); summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.1", "http://loinc.org", null, null, null));
break; break;
case "2.16.840.1.113883.6.8" : case "2.16.840.1.113883.6.8" :
summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.8", "http://unitsofmeasure.org", null, null)); summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.8", "http://unitsofmeasure.org", null, null, null));
break; break;
case "2.16.840.1.113883.6.96" : case "2.16.840.1.113883.6.96" :
summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.96", "http://snomed.info/sct", null, null)); summary.addOID(new OIDDefinition("CodeSystem", "2.16.840.1.113883.6.96", "http://snomed.info/sct", null, null, null));
break; break;
default: default:
} }

View File

@ -139,13 +139,15 @@ public interface IWorkerContext {
private String url; private String url;
private String version; private String version;
private String packageSrc; private String packageSrc;
protected OIDDefinition(String type, String oid, String url, String version, String packageSrc) { private String status;
protected OIDDefinition(String type, String oid, String url, String version, String status, String packageSrc) {
super(); super();
this.type = type; this.type = type;
this.oid = oid; this.oid = oid;
this.url = url; this.url = url;
this.version = version == null ? "" : version; this.version = version == null ? "" : version;
this.packageSrc = packageSrc; this.packageSrc = packageSrc;
this.status = status;
} }
public String getType() { public String getType() {
return type; return type;
@ -159,6 +161,9 @@ public interface IWorkerContext {
public String getVersion() { public String getVersion() {
return version; return version;
} }
public String getStatus() {
return status;
}
public String getPackageSrc() { public String getPackageSrc() {
return packageSrc; return packageSrc;
} }