{
  "resourceType": "StructureDefinition",
  "id": "spark1710",
  "meta": {
    "versionId": "spark2149",
    "lastUpdated": "2015-12-22T22:47:24.774+00:00"
  },
  "url": "http://premierinc.com/fhir/StructureDefinition/extns/ptAge",
  "name": "The patient's age",
  "display": "age",
  "status": "draft",
  "publisher": "HL7",
  "date": "2015-10-23T20:41:03+00:00",
  "description": "The age of this patient",
  "fhirVersion": "1.0.2",
  "kind": "datatype",
  "constrainedType": "Extension",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Patient"
  ],
  "base": "http://hl7.org/fhir/StructureDefinition/Extension",
  "differential": {
    "element": [
      {
        "path": "Extension",
        "short": "The patient's participation in clinical trials",
        "definition": "The clinical trials this patient has or is participating in.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "rules": "openAtEnd"
        }
      },
      {
        "path": "Extension.extension",
        "name": "ageValue",
        "short": "the value part of the age",
        "definition": "value part of age",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "ageValue"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "path": "Extension.extension",
        "name": "ageUnits",
        "short": "units of age",
        "definition": "Units of age Days, Months, Years D, M, Y",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "path": "Extension.extension.url",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "ageUnits"
      },
      {
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "path": "Extension.url",
        "representation": [
          "xmlAttr"
        ],
        "short": "identifies the meaning of the extension",
        "definition": "Source of the definition for the extension code - a logical name or a URL.",
        "comments": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition should be version specific.  This will ideally be the URI for the Resource Profile defining the extension, with the code for the extension after a #.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "fixedUri": "http://premierinc.com/fhir/StructureDefinition/extns/ptAge",
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      }
    ]
  }
}