PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.r5.examples@4.6.0
    http://hl7.org/fhir/StructureDefinition/code
{
  "description": "Base StructureDefinition for code type: A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents",
  "_filename": "code.profile.json",
  "package_name": "hl7.fhir.r5.examples",
  "date": "2021-05-03T21:59:52+10:00",
  "derivation": "specialization",
  "publisher": "HL7 FHIR Standard",
  "fhirVersion": "4.6.0",
  "name": "code",
  "abstract": false,
  "type": "code",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": null,
  "package_version": "4.6.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode": "normative"
  }, {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
    "valueCode": "4.0.0"
  } ],
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "code",
      "min": 0,
      "definition": "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents",
      "isModifier": false,
      "short": "Primitive Type code",
      "max": "*",
      "id": "code",
      "base": {
        "max": "*",
        "min": 0,
        "path": "code"
      },
      "isSummary": false
    }, {
      "path": "code.id",
      "min": 0,
      "definition": "unique id for the element within a resource (for internal references)",
      "isModifier": false,
      "short": "xml:id (or equivalent in JSON)",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUri": "string"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "code.id",
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "xpath": "@value|f:*|h:div",
        "source": "http://hl7.org/fhir/StructureDefinition/Element",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "code.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "code.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "path": "code.value",
      "min": 0,
      "definition": "Primitive value for code",
      "isModifier": false,
      "short": "Primitive value for code",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUri": "string"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/regex",
          "valueString": "[^\\s]+( [^\\s]+)*"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "code.value",
      "base": {
        "max": "1",
        "min": 0,
        "path": "string.value"
      },
      "isSummary": false
    } ]
  },
  "status": "active",
  "id": "50be5aac-b780-4676-9916-ccb991b533c7",
  "kind": "primitive-type",
  "url": "http://hl7.org/fhir/StructureDefinition/code",
  "version": "4.6.0",
  "differential": {
    "element": [ {
      "id": "code",
      "max": "*",
      "min": 0,
      "path": "code",
      "short": "Primitive Type code",
      "definition": "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"
    }, {
      "id": "code.value",
      "max": "1",
      "min": 0,
      "path": "code.value",
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUri": "code"
        }, {
          "url": "http://hl7.org/fhir/StructureDefinition/regex",
          "valueString": "[^\\s]+( [^\\s]+)*"
        } ]
      } ],
      "short": "Primitive value for code",
      "definition": "Primitive value for code",
      "representation": [ "xmlAttr" ]
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://hl7.org/fhir",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/string"
}