{
  "resourceType": "StructureDefinition",
  "id": "logicalmodel-Pharmacogeneticresult-R4",
  "url": "http://linkehr.com/fhir/logicalmodel-pharmacogeneticresult-R4",
  "identifier": [
    {
      "system": "openEHR-CKM",
      "value": "openEHR-EHR-CLUSTER.pharmacogenetic_result.v0"
    }
  ],
  "version": "0",
  "name": "Pharmacogeneticresult",
  "title": "Pharmacogenetic result",
  "status": "draft",
  "date": "2024-06-18",
  "publisher": "openEHR",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.veratech.es"
        }
      ]
    }
  ],
  "description": "Findings on pharmacogenetic testing for a single gene.",
  "purpose": "To record findings on pharmacogenetic testing for a single gene.",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "openEHR",
      "uri": "http://openehr.org",
      "name": "openEHR Mapping"
    },
    {
      "identity": "openEHR-natural",
      "uri": "http://openehr.org",
      "name": "openEHR natural path"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "StructureDefinition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "snapshot": {
    "element": [
      {
        "id": "Pharmacogenetic_result",
        "path": "Pharmacogenetic_result",
        "short": "Pharmacogenetic result",
        "definition": "Findings on pharmacogenetic testing for a single gene.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Gene_symbol",
        "path": "Pharmacogenetic_result.Gene_symbol",
        "short": "Gene symbol",
        "definition": "The official gene symbol approved by the HGNC, which is a short abbreviated form of the gene name.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Gene_symbol",
          "min": 1,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Gene_symbol.value",
        "path": "Pharmacogenetic_result.Gene_symbol.value",
        "short": "Gene symbol",
        "definition": "The official gene symbol approved by the HGNC, which is a short abbreviated form of the gene name.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Gene_symbol.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Diplotype",
        "path": "Pharmacogenetic_result.Diplotype",
        "short": "Diplotype",
        "definition": "A textual representation of the diplotype, normally as string of characters, either as as gene change descriptors or star allele diplotypes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Diplotype",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Diplotype.value",
        "path": "Pharmacogenetic_result.Diplotype.value",
        "short": "Diplotype",
        "definition": "A textual representation of the diplotype, normally as string of characters, either as as gene change descriptors or star allele diplotypes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Diplotype.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Phenotype",
        "path": "Pharmacogenetic_result.Phenotype",
        "short": "Phenotype",
        "definition": "The estimated pharmacological impact of the identified genotype.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Phenotype",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Phenotype.value_DV_CODED_TEXT",
        "path": "Pharmacogenetic_result.Phenotype.value_DV_CODED_TEXT",
        "short": "Phenotype",
        "definition": "The estimated pharmacological impact of the identified genotype.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Phenotype.value_DV_CODED_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Phenotype.value_DV_TEXT",
        "path": "Pharmacogenetic_result.Phenotype.value_DV_TEXT",
        "short": "Phenotype",
        "definition": "The estimated pharmacological impact of the identified genotype.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Phenotype.value_DV_TEXT",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Overall_activity_score",
        "path": "Pharmacogenetic_result.Overall_activity_score",
        "short": "Overall activity score",
        "definition": "An associated derived activity score, based on known association with specific genotypes and individual allele activity values, which is required to assess metaboliser status for some phenotypes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Overall_activity_score",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Overall_activity_score.value",
        "path": "Pharmacogenetic_result.Overall_activity_score.value",
        "short": "Overall activity score",
        "definition": "An associated derived activity score, based on known association with specific genotypes and individual allele activity values, which is required to assess metaboliser status for some phenotypes.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Overall_activity_score.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Individual_activity_value",
        "path": "Pharmacogenetic_result.Individual_activity_value",
        "short": "Individual activity value",
        "definition": "A list of enzyme activity values each associated with a specific allele, which are used to derive the Overall activity score.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Pharmacogenetic_result.Individual_activity_value",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype",
        "path": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype",
        "short": "Allele haplotype",
        "definition": "The allele haplotype descriptor associated with the activity value.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype.value",
        "path": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype.value",
        "short": "Allele haplotype",
        "definition": "The allele haplotype descriptor associated with the activity value.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Individual_activity_value.Allele_haplotype.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Individual_activity_value.Activity_value",
        "path": "Pharmacogenetic_result.Individual_activity_value.Activity_value",
        "short": "Activity value",
        "definition": "An associated derived activity score, based on known association with specific genotypes, which is required to assess metaboliser status for some phenotypes.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Individual_activity_value.Activity_value",
          "min": 0,
          "max": "1"
        }
      },
      {
        "id": "Pharmacogenetic_result.Individual_activity_value.Activity_value.value",
        "path": "Pharmacogenetic_result.Individual_activity_value.Activity_value.value",
        "short": "Activity value",
        "definition": "An associated derived activity score, based on known association with specific genotypes, which is required to assess metaboliser status for some phenotypes.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Individual_activity_value.Activity_value.value",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity"
          }
        ],
        "mustSupport": true,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Per_allele_tested",
        "path": "Pharmacogenetic_result.Per_allele_tested",
        "short": "Per-allele tested",
        "definition": "A list of the specific alleles tested by this pharmacogenetic test, as the specific alleles may vary between tests.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Pharmacogenetic_result.Per_allele_tested",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Per_allele_tested.SNP_rsNumber",
        "path": "Pharmacogenetic_result.Per_allele_tested.SNP_rsNumber",
        "short": "SNP rsNumber",
        "definition": "The rsNumber (rs ID) of the allele tested, based on the dbSNP identifier.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Per_allele_tested.SNP_rsNumber",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      },
      {
        "id": "Pharmacogenetic_result.Variant_detail",
        "path": "Pharmacogenetic_result.Variant_detail",
        "short": "Variant detail",
        "definition": "Details of variant findings.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Pharmacogenetic_result.Variant_detail",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "mustSupport": false,
        "isModifier": false,
        "isSummary": true
      }
    ]
  }
}