{
  "resourceType": "StructureDefinition",
  "id": "PharmacogeneticLaboratoryTest",
  "url": "http://openehr.org.nl/zibs/StructureDefinition/PharmacogeneticLaboratoryTest",
  "version": "1.0.0-alpha.3",
  "name": "PharmacogeneticLaboratoryTest",
  "title": "PGX - Pharmacogenetics diagnostic report",
  "status": "active",
  "description": "`[openEHR-EHR-OBSERVATION.laboratory_test_result.v1 ]`\n                             The result, including findings and the laboratory's interpretation, of Pharmacogenetics investigation performed on specimens collected from an individual.)",
  "fhirVersion": "4.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "http://openehr.org.nl/zibs/StructureDefinition/PharmacogeneticLaboratoryTest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "PharmacogeneticLaboratoryTest",
        "path": "PharmacogeneticLaboratoryTest",
        "short": "PGX - Pharmacogenetics diagnostic report",
        "definition": "`[openEHR-EHR-OBSERVATION.laboratory_test_result.v1 ]`\n                             The result, including findings and the laboratory's interpretation, of Pharmacogenetics investigation performed on specimens collected from an individual.)"
      },
      {
        "id": "PharmacogeneticLaboratoryTest.time",
        "path": "PharmacogeneticLaboratoryTest.time",
        "short": "time",
        "definition": "`[RM ]`\n                             `OBSERVATION.EVENT.time` - Time of this Observation event. If the width is non-zero, it is the time point of the trailing edge of the event.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.testName",
        "path": "PharmacogeneticLaboratoryTest.testName",
        "short": "Test name",
        "definition": "`[at0005 ]`\n                             Name of the laboratory investigation performed on the specimen(s).)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.clinicalInformationProvided",
        "path": "PharmacogeneticLaboratoryTest.clinicalInformationProvided",
        "short": "Clinical information provided",
        "definition": "`[at0100 ]`\n                             Description of clinical information available at the time of interpretation of results.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult",
        "short": "Laboratory result",
        "definition": "`[openEHR-EHR-CLUSTER.laboratory_test_analyte.v1 ]`\n                             The result of a laboratory test for a single analyte value.)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.analyteName",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.analyteName",
        "short": "Analyte name",
        "definition": "`[at0024 ]`\n                             The name of the analyte result.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult",
        "short": "Pharmacogenetic test result",
        "definition": "`[openEHR-EHR-CLUSTER.pharmacogenetic_result.v0 ]`\n                             Findings on pharmacogenetic testing for a single gene.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.geneSymbol",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.geneSymbol",
        "short": "Gene symbol",
        "definition": "`[at0003 ]`\n                             The official gene symbol approved by the HGNC, which is a short abbreviated form of the gene name.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.diplotype",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.diplotype",
        "short": "Diplotype",
        "definition": "`[at0004 ]`\n                             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",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.phenotype",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.phenotype",
        "short": "Phenotype",
        "definition": "`[at0052 ]`\n                             The estimated pharmacological impact of the identified genotype.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://example.org/ValueSet/Phenotype"
        }
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.overallActivityScore",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.overallActivityScore",
        "short": "Overall activity score",
        "definition": "`[at0080  | 1]`\n                             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",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue",
        "short": "Individual activity value",
        "definition": "`[at0084 ]`\n                             A list of enzyme activity values each associated with a specific allele, which are used to derive the Overall activity score.)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue.alleleHaplotype",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue.alleleHaplotype",
        "short": "Allele haplotype",
        "definition": "`[at0086 ]`\n                             The allele haplotype descriptor associated with the activity value.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue.activityValue",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.individualActivityValue.activityValue",
        "short": "Activity value",
        "definition": "`[at0085  | 1]`\n                             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",
        "type": [
          {
            "code": "Quantity"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested",
        "short": "Per-allele tested",
        "definition": "`[at0097 ]`\n                             A list of the specific alleles tested by this pharmacogenetic test, as the specific alleles may vary between tests.)",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber",
        "short": "SNP rsNumber",
        "definition": "`[openEHR-EHR-CLUSTER.knowledge_base_reference.v1 ]`\n                             A citation of a digital resource used as an source of authoritative or expert information, and/or to items contained within the resource.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber.knowledgeBaseName",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber.knowledgeBaseName",
        "short": "Knowledge base name",
        "definition": "`[at0001 ]`\n                             The name of the knowledge base.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber.itemName",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.perAlleleTested.sNPRsNumber.itemName",
        "short": "Item name",
        "definition": "`[at0005 ]`\n                             The name of the referenced item within the knowledge base.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail",
        "short": "Variant detail",
        "definition": "`[openEHR-EHR-CLUSTER.genomic_variant_result.v1 ]`\n                             Findings and annotations related to one variant found in a human individual by a sequencing test.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment",
        "short": "GA4GH VRS attachment",
        "definition": "`[openEHR-EHR-CLUSTER.media_file.v1 ]`\n                             A media file that is acquired or used as part of the healthcare process, and associated metadata.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.content",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.content",
        "short": "Content",
        "definition": "`[at0001 ]`\n                             Digital representation of the media file.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Attachment"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.contentName",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.contentName",
        "short": "Content name",
        "definition": "`[at0002 ]`\n                             Descriptive name or title for the media file.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.created[x]",
        "path": "PharmacogeneticLaboratoryTest.laboratoryResult.pharmacogeneticTestResult.variantDetail.gA4GHVRSAttachment.created[x]",
        "short": "Created",
        "definition": "at0004: The date/time, partial date or period when the media file was generated or authored.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.overallRecommendation",
        "path": "PharmacogeneticLaboratoryTest.overallRecommendation",
        "short": "Overall recommendation",
        "definition": "`[at0057 ]`\n                             Narrative description of the key findings.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.testMethod",
        "path": "PharmacogeneticLaboratoryTest.testMethod",
        "short": "Test method",
        "definition": "`[at0121 ]`\n                             Description about the method used to perform the test.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.testingDevice",
        "path": "PharmacogeneticLaboratoryTest.testingDevice",
        "short": "Testing device",
        "definition": "`[openEHR-EHR-CLUSTER.device.v1 ]`\n                             An instrument, apparatus, implant, material or similar, used in the provision of healthcare. In this context, a medical device includes a broad range of devices which act through a variety of physical, mechanical, thermal or similar means but specifically excludes devices which act through medicinal means such as pharmacological, metabolic or immunological methods.  The scope is inclusive of disposable devices as well as durable or persisting devices that require tracking, maintenance activities or regular calibration, recognising that each type of device has specific data recording requirements.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.testingDevice.deviceName",
        "path": "PharmacogeneticLaboratoryTest.testingDevice.deviceName",
        "short": "Device name",
        "definition": "`[at0001 ]`\n                             Identification of the medical device, preferably by a common name, a formal fully descriptive name or, if required, by class or category of device.)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "PharmacogeneticLaboratoryTest.testingDevice.type",
        "path": "PharmacogeneticLaboratoryTest.testingDevice.type",
        "short": "Type",
        "definition": "`[at0003 ]`\n                             The category or kind of device.)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      }
    ]
  }
}