{
  "resourceType": "StructureDefinition",
  "id": "kodrx-block",
  "url": "https://kodrx.app/fhir/StructureDefinition/block",
  "version": "1.0.0",
  "name": "KodRxBlockExtension",
  "title": "KodRx Blockchain Block Extension",
  "status": "draft",
  "experimental": false,
  "date": "2026-08-16",
  "publisher": "KodRx",

  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>KodRx Blockchain Block Extension</p><p>Stores the blockchain block number associated with a KodRx verified prescription.</p></div>"
  },

  "description": "Extension that stores the blockchain block number associated with a KodRx verified prescription.",
  "purpose": "Identifies the blockchain block containing the integrity evidence associated with a KodRx prescription.",

  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",

  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",

  "context": [
    {
      "type": "element",
      "expression": "Provenance"
    }
  ],

  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "short": "KodRx blockchain block",
        "definition": "Blockchain block number associated with the integrity evidence of a KodRx prescription."
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://kodrx.app/fhir/StructureDefinition/block"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "integer"
          }
        ]
      }
    ]
  }
}

