{
  "resourceType": "StructureDefinition",
  "id": "VRDR-Decedent-Age",
  "url": "http://hl7.org/fhir/us/vrdr/decedentAge",
  "name": "VRDR Decedent Age",
  "status": "draft",
  "publisher": "Hi3 Solutions",
  "contact": [
    {
      "name": "AbdulMalik Shakir",
      "telecom": [
        {
          "system": "phone",
          "value": "6266444491",
          "use": "work"
        },
        {
          "system": "email",
          "value": "abdulmalik.shakir@hi3solutions.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "The decedent's chronological age at the time of death. When present, the effective date of this observation shall be equal to the decedent's date of death. Age is derived as the difference in time between the decedent's death date and birth date. When age is LE one day then unit shall be minutes, when age is LE one year then unit shall be days, else unit shall be years.",
  "kind": "resource",
  "abstract": false,
  "contextType": "resource",
  "context": [
    "Observation"
  ],
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation"
      },
      {
        "id": "Observation.status",
        "path": "Observation.status",
        "short": "status",
        "definition": "SHALL contain exactly one [1..1] status=\"final\" Final (CONF:4393-20).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "fixedString": "final"
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "short": "code",
        "definition": "SHALL contain exactly one [1..1] code=\" 30525-0\" AGE (CodeSystem: LOINC urn:oid:2.16.840.1.113883.6.1) (CONF:4393-21).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "urn:oid:2.16.840.1.113883.6.1",
              "code": "30525-0",
              "display": "AGE"
            }
          ]
        }
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "short": "subject",
        "definition": "SHALL contain exactly one [1..1] subject (CONF:4393-22).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/us/vrdr/StructureDefinition/VRDR-Decedent"
          }
        ]
      },
      {
        "id": "Observation.effective[x]",
        "path": "Observation.effective[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "effective[x]",
        "definition": "MAY contain zero or one [0..1] effective[x], where effective[x] is (CONF:4393-17)",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Observation.effective[x]:effectiveDateTime",
        "path": "Observation.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "short": "effectiveDateTime",
        "definition": "effectiveDateTime (CONF:4393-23)"
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        },
        "short": "value[x]",
        "definition": "SHALL contain exactly one [1..1] value[x], where value[x] is (CONF:4393-18)",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.value[x]:valueQuantity",
        "path": "Observation.valueQuantity",
        "sliceName": "valueQuantity",
        "short": "valueQuantity",
        "definition": "valueQuantity (CONF:4393-19)"
      },
      {
        "id": "Observation.valueQuantity:value",
        "path": "Observation.valueQuantity.value",
        "short": "value",
        "definition": "SHALL contain exactly one [1..1] value (CONF:4393-24).",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Observation.valueQuantity:unit",
        "path": "Observation.valueQuantity.unit",
        "short": "unit",
        "definition": "SHALL contain exactly one [1..1] unit (CONF:4393-25).",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/age-units",
            "display": "AgeUnitOfMeasure"
          }
        }
      }
    ]
  }
}