{
  "resourceType" : "StructureDefinition",
  "id" : "ST",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>The character string data type stands for text data, primarily intended for machine processing (e.g., sorting, querying, indexing, etc.) Used for names, symbols, and formal expressions.</p>\n    </div>"
  },
  "extension" : [{
    "url" : "http://hl7.org/fhir/tools/StructureDefinition/logical-target",
    "_valueBoolean" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
        "valueCode" : "not-applicable"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/tools/StructureDefinition/xml-namespace",
    "valueUri" : "urn:hl7-org:v3"
  },
  {
    "url" : "http://hl7.org/fhir/tools/StructureDefinition/logical-container",
    "valueUri" : "http://hl7.org/cda/stds/core/StructureDefinition/ClinicalDocument"
  }],
  "url" : "http://hl7.org/cda/stds/core/StructureDefinition/ST",
  "version" : "2.0.2-sd",
  "name" : "ST",
  "title" : "ST: CharacterString (V3 Data Type)",
  "status" : "active",
  "experimental" : false,
  "date" : "2025-12-12T15:29:54+11:00",
  "publisher" : "Health Level 7",
  "contact" : [{
    "name" : "HL7 International - Structured Documents",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/structure"
    },
    {
      "system" : "email",
      "value" : "structdog@lists.HL7.org"
    }]
  }],
  "description" : "The character string data type stands for text data, primarily intended for machine processing (e.g., sorting, querying, indexing, etc.) Used for names, symbols, and formal expressions.",
  "fhirVersion" : "5.0.0",
  "mapping" : [{
    "identity" : "rim",
    "uri" : "http://hl7.org/v3",
    "name" : "RIM Mapping"
  }],
  "kind" : "logical",
  "abstract" : false,
  "type" : "http://hl7.org/cda/stds/core/StructureDefinition/ST",
  "baseDefinition" : "http://hl7.org/cda/stds/core/StructureDefinition/ANY",
  "derivation" : "specialization",
  "snapshot" : {
    "extension" : [{
      "url" : "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString" : "2.0.2-sd"
    }],
    "element" : [{
      "id" : "ST",
      "path" : "ST",
      "short" : "Base for all types and resources",
      "definition" : "The character string data type stands for text data, primarily intended for machine processing (e.g., sorting, querying, indexing, etc.) Used for names, symbols, and formal expressions.",
      "min" : 1,
      "max" : "*",
      "base" : {
        "path" : "Base",
        "min" : 0,
        "max" : "*"
      },
      "constraint" : [{
        "key" : "text-null",
        "severity" : "error",
        "human" : "xmlText and nullFlavor are mutually exclusive (one must be present)",
        "expression" : "(xmlText | nullFlavor).count() = 1"
      }],
      "isModifier" : false,
      "mapping" : [{
        "identity" : "rim",
        "map" : "n/a"
      }]
    },
    {
      "id" : "ST.nullFlavor",
      "path" : "ST.nullFlavor",
      "representation" : ["xmlAttr"],
      "label" : "Exceptional Value Detail",
      "definition" : "If a value is an exceptional value (NULL-value), this specifies in what way and why proper information is missing.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ANY.nullFlavor",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }],
      "binding" : {
        "strength" : "required",
        "valueSet" : "http://hl7.org/cda/stds/core/ValueSet/CDANullFlavor"
      }
    },
    {
      "id" : "ST.representation",
      "path" : "ST.representation",
      "representation" : ["xmlAttr"],
      "definition" : "Specifies the representation of the binary data that is the content of the binary data value",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ST.representation",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }],
      "fixedCode" : "TXT"
    },
    {
      "id" : "ST.mediaType",
      "path" : "ST.mediaType",
      "representation" : ["xmlAttr"],
      "label" : "Media Type",
      "definition" : "Identifies the type of the encapsulated data and identifies a method to interpret or render the data.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ST.mediaType",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }],
      "fixedCode" : "text/plain"
    },
    {
      "id" : "ST.language",
      "path" : "ST.language",
      "representation" : ["xmlAttr"],
      "label" : "Language",
      "definition" : "For character based information the language property specifies the human language of the text.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ST.language",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }]
    },
    {
      "id" : "ST.xmlText",
      "path" : "ST.xmlText",
      "representation" : ["xmlText"],
      "short" : "Allows for mixed text content",
      "comment" : "This element is represented in XML as textual content. The actual name \"xmlText\" will not appear in a CDA instance.",
      "min" : 0,
      "max" : "1",
      "base" : {
        "path" : "ST.xmlText",
        "min" : 0,
        "max" : "1"
      },
      "type" : [{
        "code" : "string",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/st-simple"]
      }]
    }]
  },
  "differential" : {
    "element" : [{
      "id" : "ST",
      "path" : "ST",
      "definition" : "The character string data type stands for text data, primarily intended for machine processing (e.g., sorting, querying, indexing, etc.) Used for names, symbols, and formal expressions.",
      "min" : 1,
      "max" : "*",
      "constraint" : [{
        "key" : "text-null",
        "severity" : "error",
        "human" : "xmlText and nullFlavor are mutually exclusive (one must be present)",
        "expression" : "(xmlText | nullFlavor).count() = 1"
      }]
    },
    {
      "id" : "ST.representation",
      "path" : "ST.representation",
      "representation" : ["xmlAttr"],
      "definition" : "Specifies the representation of the binary data that is the content of the binary data value",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }],
      "fixedCode" : "TXT"
    },
    {
      "id" : "ST.mediaType",
      "path" : "ST.mediaType",
      "representation" : ["xmlAttr"],
      "label" : "Media Type",
      "definition" : "Identifies the type of the encapsulated data and identifies a method to interpret or render the data.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }],
      "fixedCode" : "text/plain"
    },
    {
      "id" : "ST.language",
      "path" : "ST.language",
      "representation" : ["xmlAttr"],
      "label" : "Language",
      "definition" : "For character based information the language property specifies the human language of the text.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/cs-simple"]
      }]
    },
    {
      "id" : "ST.xmlText",
      "path" : "ST.xmlText",
      "representation" : ["xmlText"],
      "short" : "Allows for mixed text content",
      "comment" : "This element is represented in XML as textual content. The actual name \"xmlText\" will not appear in a CDA instance.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "string",
        "profile" : ["http://hl7.org/cda/stds/core/StructureDefinition/st-simple"]
      }]
    }]
  }
}