{
  "resourceType": "StructureDefinition",
  "id": "medication-genericName",
  "url": "http://hl7.org/fhir/StructureDefinition/medication-genericName",
  "version": "4.0",
  "name": "medication-genericName",
  "title": "Medication Generic Name",
  "status": "draft",
  "publisher": "Orion Health",
  "description": "Indicates the generic name of a medication",
  "purpose": "This extension indicates the generic name of a medication",
  "fhirVersion": "4.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1",
        "base": {
          "path": "Extension",
          "max": "1"
        }
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "base": {
          "path": "Extension.url"
        },
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/medication-genericName"
      },
      {
        "id": "Extension.value[x]",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Extension.value[x]",
        "short": "Indicates the generic name of a medication",
        "definition": "Set the generic name of this medication",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
          },
          {
            "identity": "rim",
            "map": "CV"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding rdfs:subClassOf dt:CDCoding"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/medication-genericName"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Indicates the generic name of a medication",
        "definition": "Set the generic name of this medication",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ]
      }
    ]
  }
}