{
  "resourceType": "StructureDefinition",
  "id": "kodrx-hash",
  "url": "https://kodrx.app/fhir/StructureDefinition/hash",
  "version": "1.0.0",
  "name": "KodRxHashExtension",
  "title": "KodRx Blockchain Hash 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 Hash Extension</p><p>Stores the cryptographic hash associated with a KodRx verified prescription.</p></div>"
  },

  "description": "Extension that stores the cryptographic hash associated with a KodRx verified prescription.",
  "purpose": "Provides verifiable integrity information for clinical resources exported by KodRx.",

  "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 hash",
        "definition": "Cryptographic hash generated by KodRx for integrity verification."
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://kodrx.app/fhir/StructureDefinition/hash"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}
