{
  "resourceType": "StructureDefinition",
  "url": "http://hl7.org/fhir/StructureDefinition/flag-onset",
  "version": "4.0",
  "fhirVersion": "4.0",
  "id": "flag-onset",
  "name": "flag-onset",
  "title": "Flag Onset",
  "status": "draft",
  "publisher": "Orion Health",
  "description": "This extension enhances the Flag resources to provide an onset for a Flag",
  "purpose": "Unlike the other problem related resources, Flags do not contain an onset field. This extension enhances the Flag resource to provide the onset as either an Age, a Date or a String",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": 1
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/flag-onset"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "This extension enhances the Flag resources to provide an onset for a Flag",
        "definition": "Set the onset for this Flag",
        "min": 1,
        "max": 1,
        "type": [
          {
            "code": "Age"
          },
          {
            "code": "dateTime"
          },
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}