package org.hl7.v3; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * * A ST that optionally may have a code attached. * The text must always be present if a code is present. The * code is often a local code. * * * <p>Java class for SC complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="SC"> * <complexContent> * <extension base="{urn:hl7-org:v3}ST"> * <attribute name="code" type="{urn:hl7-org:v3}cs" /> * <attribute name="codeSystem" type="{urn:hl7-org:v3}uid" /> * <attribute name="codeSystemName" type="{urn:hl7-org:v3}st" /> * <attribute name="codeSystemVersion" type="{urn:hl7-org:v3}st" /> * <attribute name="displayName" type="{urn:hl7-org:v3}st" /> * </extension> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SC") public class SC extends ST { /** * */ private static final long serialVersionUID = 1L; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String code; @XmlAttribute protected String codeSystem; @XmlAttribute protected String codeSystemName; @XmlAttribute protected String codeSystemVersion; @XmlAttribute protected String displayName; /** * Gets the value of the code property. * * @return * possible object is * {@link String } * */ public String getCode() { return code; } /** * Sets the value of the code property. * * @param value * allowed object is * {@link String } * */ public void setCode(String value) { this.code = value; } /** * Gets the value of the codeSystem property. * * @return * possible object is * {@link String } * */ public String getCodeSystem() { return codeSystem; } /** * Sets the value of the codeSystem property. * * @param value * allowed object is * {@link String } * */ public void setCodeSystem(String value) { this.codeSystem = value; } /** * Gets the value of the codeSystemName property. * * @return * possible object is * {@link String } * */ public String getCodeSystemName() { return codeSystemName; } /** * Sets the value of the codeSystemName property. * * @param value * allowed object is * {@link String } * */ public void setCodeSystemName(String value) { this.codeSystemName = value; } /** * Gets the value of the codeSystemVersion property. * * @return * possible object is * {@link String } * */ public String getCodeSystemVersion() { return codeSystemVersion; } /** * Sets the value of the codeSystemVersion property. * * @param value * allowed object is * {@link String } * */ public void setCodeSystemVersion(String value) { this.codeSystemVersion = value; } /** * Gets the value of the displayName property. * * @return * possible object is * {@link String } * */ public String getDisplayName() { return displayName; } /** * Sets the value of the displayName property. * * @param value * allowed object is * {@link String } * */ public void setDisplayName(String value) { this.displayName = value; } }