PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.pq@cmc-fda-2.0.0-ballot
    http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-polymorphic-form
description: Alternate structure present in the drug substance
package_name: hl7.fhir.us.pq
derivation: constraint
name: PolymorphicForm
type: SubstanceDefinition
elements:
  identifier: {short: optional user designated identifier, mustSupport: true, index: 0}
  structure:
    constraint:
      cmc-structure-representation-required:
        human: Either a file or string structure representation is required
        source: http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-polymorphic-form
        severity: error
        expression: |-
          representation.type.coding.where(
            system = 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'
            and (code in ('C45253' | 'C103240'))
          ).exists()
    mustSupport: true
    index: 1
    elements:
      molecularFormula: {short: Molecular Formula, mustSupport: true, index: 2}
      technique: {type: CodeableConcept, short: Substance Characterisation Technique, mustSupport: true, index: 3}
      representation:
        short: Impurity Structure Graphic | Impurity Structure Data File
        mustSupport: true
        index: 4
        elements:
          type:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pq-cmc-fda/ValueSet/pqcmc-representation-types'}
            mustSupport: true
            index: 5
        required: [type]
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: type, type: value}
          min: null
          slices:
            graphic:
              match:
                type:
                  coding:
                  - {code: C54273, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
              schema:
                short: A graphical, displayable depiction of the structure (e.g. an SVG, PNG)
                index: 6
                elements:
                  type:
                    short: Graphic
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: C54273, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
                    index: 7
                  document:
                    type: Reference
                    short: Impurity Structure Graphic
                    refers: ['http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-graphic-reference']
                    index: 8
                required: [document]
            structureFile:
              match:
                type:
                  coding:
                  - {code: C103240, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
              schema:
                short: machine-readable representation -- attached file
                array: true
                index: 9
                elements:
                  type:
                    short: Structure File
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: C103240, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
                    index: 10
                  document:
                    type: Reference
                    short: Impurity Chemical Structure Data (files, e.g. .SDF, .CIF)
                    mustSupport: true
                    refers: ['http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-structure-reference']
                    index: 11
                required: [document]
            structureString:
              match:
                type:
                  coding:
                  - {code: C45253, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
              schema:
                short: machine-readable representation -- plain text
                array: true
                index: 12
                elements:
                  type:
                    short: Structure Textual
                    pattern:
                      type: CodeableConcept
                      value:
                        coding:
                        - {code: C45253, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl'}
                    index: 13
                  representation: {short: 'Impurity Chemical Structure Data (short, plain text representations, e.g. SMILES)', mustSupport: true, index: 14}
                  format:
                    short: Drug Substance Impurity Method Type
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pq-cmc-fda/ValueSet/pqcmc-chemical-structure-datafile-type-terminology'}
                    mustSupport: true
                    index: 15
                required: [representation, format]
  code:
    mustSupport: true
    index: 16
    elements:
      code:
        elements:
          coding:
            short: UNII
            index: 17
            elements:
              system:
                pattern: {type: Uri, value: 'http://fdasis.nlm.nih.gov'}
                index: 18
  name:
    short: Substance Name
    constraint:
      cmc-name-preferred: {human: 'Name.preferred: at most one = true', source: 'http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-polymorphic-form', severity: error, expression: select(preferred = true).count() < 2}
    mustSupport: true
    index: 19
    elements:
      type:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/pq-cmc-fda/ValueSet/pqcmc-substance-name-type'}
        index: 20
      preferred: {short: True when the name type is Substance Name, mustSupport: true, index: 21}
    slicing:
      rules: closed
      description: Slice based on value pattern
      discriminator:
      - {path: type, type: value}
      min: 1
      slices:
        sub:
          match:
            type:
              coding:
              - {code: C97054, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: Generic Name}
          schema:
            mustSupport: true
            index: 22
            elements:
              name: {short: Generic Name, mustSupport: true, index: 23}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: C97054, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: Generic Name}
                index: 24
              preferred: {mustSupport: true, index: 25}
            required: [type]
        gsrs:
          match:
            type:
              coding:
              - {code: C203355, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: GSRS Preferred Term}
          schema:
            mustSupport: true
            index: 26
            elements:
              name: {short: GSRS Preferred Term, mustSupport: true, index: 27}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: C203355, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: GSRS Preferred Term}
                index: 28
              preferred: {mustSupport: true, index: 29}
            required: [type]
        isbt:
          match:
            type:
              coding:
              - {code: C95517, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: ISBT-128 DIN}
          schema:
            mustSupport: true
            index: 30
            elements:
              name: {short: ISBT-128 DIN, mustSupport: true, index: 31}
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: C95517, system: 'http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl', display: ISBT-128 DIN}
                index: 32
              preferred: {mustSupport: true, index: 33}
            required: [type]
package_version: cmc-fda-2.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/pq-cmc-fda/StructureDefinition/pqcmc-polymorphic-form
base: http://hl7.org/fhir/StructureDefinition/SubstanceDefinition
version: 2.0.0-ballot
required: [name]