public Coding addCoding() { //3 Coding t = new Coding(); if (this.coding == null) this.coding = new ArrayList<Coding>(); this.coding.add(t); return t; }
public Coding addSecurityLabel() { //3 Coding t = new Coding(); if (this.securityLabel == null) this.securityLabel = new ArrayList<Coding>(); this.securityLabel.add(t); return t; }
public Coding addType() { //3 Coding t = new Coding(); if (this.type == null) this.type = new ArrayList<Coding>(); this.type.add(t); return t; }
public Coding addCode() { //3 Coding t = new Coding(); if (this.code == null) this.code = new ArrayList<Coding>(); this.code.add(t); return t; }
public Coding addControl() { //3 Coding t = new Coding(); if (this.control == null) this.control = new ArrayList<Coding>(); this.control.add(t); return t; }
/** * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) */ public Coding getAnswerCoding() throws FHIRException { if (this.answer == null) this.answer = new Coding(); if (!(this.answer instanceof Coding)) throw new FHIRException("Type mismatch: the type Coding was expected, but "+this.answer.getClass().getName()+" was encountered"); return (Coding) this.answer; }
@Override public ValidationResult validateCode(String system, String code, String display) { Coding c = new Coding(system, code, display); return validateCode(c, null); }
@Override public ValidationResult validateCode(String system, String code, String display, ValueSet vs) { Coding c = new Coding(system, code, display); return validateCode(c, vs); }
/** * @return {@link #operationalStatus} (The operational status covers operation values most relevant to beds (but can also apply to rooms/units/chairs/etc. such as an isolation unit/dialysis chair). This typically covers concepts such as contamination, housekeeping, and other activities like maintenance.) */ public Coding getOperationalStatus() { if (this.operationalStatus == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Location.operationalStatus"); else if (Configuration.doAutoCreate()) this.operationalStatus = new Coding(); // cc return this.operationalStatus; }
/** * @return {@link #modality} (The modality of this series sequence.) */ public Coding getModality() { if (this.modality == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImagingStudySeriesComponent.modality"); else if (Configuration.doAutoCreate()) this.modality = new Coding(); // cc return this.modality; }
/** * @return {@link #bodySite} (The anatomic structures examined. See DICOM Part 16 Annex L (http://dicom.nema.org/medical/dicom/current/output/chtml/part16/chapter_L.html) for DICOM to SNOMED-CT mappings. The bodySite may indicate the laterality of body part imaged; if so, it shall be consistent with any content of ImagingStudy.series.laterality.) */ public Coding getBodySite() { if (this.bodySite == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImagingStudySeriesComponent.bodySite"); else if (Configuration.doAutoCreate()) this.bodySite = new Coding(); // cc return this.bodySite; }
/** * @return {@link #laterality} (The laterality of the (possibly paired) anatomic structures examined. E.g., the left knee, both lungs, or unpaired abdomen. If present, shall be consistent with any laterality information indicated in ImagingStudy.series.bodySite.) */ public Coding getLaterality() { if (this.laterality == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImagingStudySeriesComponent.laterality"); else if (Configuration.doAutoCreate()) this.laterality = new Coding(); // cc return this.laterality; }
/** * @return {@link #sopClass} (DICOM instance type.) */ public Coding getSopClass() { if (this.sopClass == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ImagingStudySeriesInstanceComponent.sopClass"); else if (Configuration.doAutoCreate()) this.sopClass = new Coding(); // cc return this.sopClass; }
/** * @return {@link #type} (Idenifying type for this part of the name (e.g. strength part).) */ public Coding getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicinalProductNameNamePartComponent.type"); else if (Configuration.doAutoCreate()) this.type = new Coding(); // cc return this.type; }
/** * @return {@link #code} (A code that identifies the type of context being specified by this usage context.) */ public Coding getCode() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create UsageContext.code"); else if (Configuration.doAutoCreate()) this.code = new Coding(); // cc return this.code; }
/** * @return {@link #use} (A code that details how this designation would be used.) */ public Coding getUse() { if (this.use == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionDesignationComponent.use"); else if (Configuration.doAutoCreate()) this.use = new Coding(); // cc return this.use; }
/** * @return {@link #classification} (Security label privacy tag that species the level of confidentiality protection required for this term and/or term elements.) */ public Coding getClassification() { if (this.classification == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SecurityLabelComponent.classification"); else if (Configuration.doAutoCreate()) this.classification = new Coding(); // cc return this.classification; }
@Override public ValidationResult validateCode(String system, String code, String display, ConceptSetComponent vsi) { Coding c = new Coding(system, code, display); ValueSet vs = new ValueSet(); vs.setUrl(Utilities.makeUuidUrn()); vs.getCompose().addInclude(vsi); return validateCode(c, vs); }
public static Coding readAsCoding(Element item) { Coding c = new Coding(); c.setSystem(item.getNamedChildValue("system")); c.setVersion(item.getNamedChildValue("version")); c.setCode(item.getNamedChildValue("code")); c.setDisplay(item.getNamedChildValue("display")); return c; }
public org.hl7.fhir.r4.model.Coding convertCoding(org.hl7.fhir.instance.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Coding tgt = new org.hl7.fhir.r4.model.Coding(); copyElement(src, tgt); tgt.setSystem(src.getSystem()); tgt.setVersion(src.getVersion()); tgt.setCode(src.getCode()); tgt.setDisplay(src.getDisplay()); tgt.setUserSelected(src.getUserSelected()); return tgt; }