{
  "resourceType": "StructureDefinition",
  "id": "TulipVariety",
  "url": "https://fake-acme.org/fhir/TulipCare/models/StructureDefinition/TulipVariety",
  "version": "0.1.0",
  "name": "TulipVarietyLm",
  "title": "Tulip Variety",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "https://fake-acme.org/fhir/TulipCare/models/StructureDefinition/TulipVariety",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "TulipVariety",
        "path": "TulipVariety",
        "short": "Tulip Variety catalogue entry",
        "definition": "Represents a named cultivar or species entry in the farmer's variety catalogue, capturing horticultural classification and bloom characteristics.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "TulipVariety.varietyId",
        "path": "TulipVariety.varietyId",
        "short": "Unique system identifier for this variety record",
        "definition": "Server-assigned unique identifier for the variety record.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "TulipVariety.varietyName",
        "path": "TulipVariety.varietyName",
        "short": "Cultivar or species common name",
        "definition": "Common name of the cultivar or species (e.g., Queen of Night). Must be unique within the catalogue.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "TulipVariety.tulipClass",
        "path": "TulipVariety.tulipClass",
        "short": "Horticultural classification group",
        "definition": "Horticultural classification group based on KAVB classification (13 recognised groups).",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fake-acme.org/fhir/TulipCare/models/ValueSet/TulipClass-lm"
        }
      },
      {
        "id": "TulipVariety.bloomSeason",
        "path": "TulipVariety.bloomSeason",
        "short": "Seasonal bloom period",
        "definition": "The season in which this variety blooms, derived from KAVB bloom time chart.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "https://fake-acme.org/fhir/TulipCare/models/ValueSet/BloomSeason-lm"
        }
      },
      {
        "id": "TulipVariety.heightRangeMin",
        "path": "TulipVariety.heightRangeMin",
        "short": "Minimum expected plant height in inches",
        "definition": "Minimum expected plant height in inches (e.g., 16).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "TulipVariety.heightRangeMax",
        "path": "TulipVariety.heightRangeMax",
        "short": "Maximum expected plant height in inches",
        "definition": "Maximum expected plant height in inches (e.g., 30). Paired with heightRangeMin.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      },
      {
        "id": "TulipVariety.flowerColour",
        "path": "TulipVariety.flowerColour",
        "short": "Descriptive colour of the bloom",
        "definition": "Descriptive or coded colour of the bloom. Free text for v1; may add coded values in future.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "TulipVariety.notes",
        "path": "TulipVariety.notes",
        "short": "Free-text remarks about the variety",
        "definition": "Optional free-text remarks or observations about this variety.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "TulipVariety.recordedDate",
        "path": "TulipVariety.recordedDate",
        "short": "Date the variety was added to the catalogue",
        "definition": "Server-populated date on which this variety record was created in the catalogue.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ]
      }
    ]
  }
}