FHIR Chat · Create Coding · implementers

Stream: implementers

Topic: Create Coding


view this post on Zulip amit bodhwani (May 15 2021 at 07:51):

How to create Coding if input file has just one code.

view this post on Zulip amit bodhwani (May 15 2021 at 07:54):

Hi all,
How to create Coding if input has just one code.

view this post on Zulip amit bodhwani (May 15 2021 at 11:09):

@Oliver Egger can i get some simple json examples where coding and codeable concepts are used inside Structure Map.

view this post on Zulip Oliver Egger (May 15 2021 at 13:02):

In this example there are code / Coding / CodeableConcepst created, e.g. for a CodeableConcep of the identifier.type:

.... -> identifier.type as type,  type.coding as coding,  coding.system as system,  coding.code as code then {
      src -> system.value = 'http://terminology.hl7.org/CodeSystem/v2-0203' "system";
      src -> code.value = 'MR' "code";
}

if you switch to json on the example you have the StructureMap representation in json.

view this post on Zulip amit bodhwani (May 16 2021 at 06:46):

Oliver Egger said:

In this example there are code / Coding / CodeableConcepst created, e.g. for a CodeableConcep of the identifier.type:

.... -> identifier.type as type,  type.coding as coding,  coding.system as system,  coding.code as code then {
      src -> system.value = 'http://terminology.hl7.org/CodeSystem/v2-0203' "system";
      src -> code.value = 'MR' "code";
}

if you switch to json on the example you have the StructureMap representation in json.

Hello @Oliver Egger
Thank you for sharing this example.
I was able to figure out Codeableconecpt for identifier.type and create new Codeableconecpt where "transform" : "cc".
Is there a example where we have just one simple code and we can create coding also with "transform" : "c" and one more scenario where we have two files with code and system and create Codeableconecpt

view this post on Zulip Brian Reinhold (May 16 2021 at 11:45):

@amit bodhwani I don't know if this is what you are asking for but in the Observation resource there is an entry Observation.code which is a CodeableConcept. The purpose of this field is to provide a code that tells you what the observation is, for example, the code might say that this is a Body Temperature. Below is a JSON example where I show this entry using two code systems, IEEE Medical Device Code and LOINC. The codes express the same concept, of course, they are just saying the same thing in two different languages.

"code": {
    "coding": [
        {
            "system": "urn:iso:std:iso:11073:10101",   // Indicates MDC code system
            "code": "150364"                                                  // Code provided by device indicating Body temperature
        },
        {
            "system": "http://loinc.org",                            // Indicates LOINC code system
            "code": "8310-5"                                                   // LOINC code indicating body temperature mapped from MDC code.
        }
    ],
    "text": "MDC_TEMP_BODY: Body temp"
}

Don't know if this helps answer your question.

view this post on Zulip amit bodhwani (May 16 2021 at 14:08):

Brian Reinhold said:

amit bodhwani I don't know if this is what you are asking for but in the Observation resource there is an entry Observation.code which is a CodeableConcept. The purpose of this field is to provide a code that tells you what the observation is, for example, the code might say that this is a Body Temperature. Below is a JSON example where I show this entry using two code systems, IEEE Medical Device Code and LOINC. The codes express the same concept, of course, they are just saying the same thing in two different languages.

"code": {
    "coding": [
        {
            "system": "urn:iso:std:iso:11073:10101",   // Indicates MDC code system
            "code": "150364"                                                  // Code provided by device indicating Body temperature
        },
        {
            "system": "http://loinc.org",                            // Indicates LOINC code system
            "code": "8310-5"                                                   // LOINC code indicating body temperature mapped from MDC code.
        }
    ],
    "text": "MDC_TEMP_BODY: Body temp"
}

Don't know if this helps answer your question.

Hello @Brian Reinhold ,

Thank you for your response, I have created Structure Map for understanding Coding and Codable Concept for Patient Resource with Codable Concept for identifier.type and jurisdictions.
For identifier.type I have used transform operation as copy and
For jurisdictions I used transform operation as "cc" ( to create the Codable Concept) similar to the example shared by @Oliver Egger (once again thanks a lot for the example).
I want to include below scenarios in structure map(json) with Coding and CodableConcept

  1. Input has 3 input fields (code , system and another code) and I want to translate this to Coding[0] with code and system
    Coding[1] with another Code.
    2 . How to pass display and text as well in codable concept inside structure map example shared by @Oliver Egger similar to below example if "transform": "cc" or "transform": "copy"

"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "260385009",
"display": "Negative"
}, {
"system": "https://acme.lab/resultcodes",
"code": "NEG",
"display": "Negative"
}
],
"text": "Negative for Chlamydia Trachomatis rRNA"
}

view this post on Zulip amit bodhwani (May 16 2021 at 14:52):

amit bodhwani said:

Brian Reinhold said:

amit bodhwani I don't know if this is what you are asking for but in the Observation resource there is an entry Observation.code which is a CodeableConcept. The purpose of this field is to provide a code that tells you what the observation is, for example, the code might say that this is a Body Temperature. Below is a JSON example where I show this entry using two code systems, IEEE Medical Device Code and LOINC. The codes express the same concept, of course, they are just saying the same thing in two different languages.

"code": {
    "coding": [
        {
            "system": "urn:iso:std:iso:11073:10101",   // Indicates MDC code system
            "code": "150364"                                                  // Code provided by device indicating Body temperature
        },
        {
            "system": "http://loinc.org",                            // Indicates LOINC code system
            "code": "8310-5"                                                   // LOINC code indicating body temperature mapped from MDC code.
        }
    ],
    "text": "MDC_TEMP_BODY: Body temp"
}

Don't know if this helps answer your question.

Hello Brian Reinhold ,

Thank you for your response, I have created Structure Map for understanding Coding and Codable Concept for Patient Resource with Codable Concept for identifier.type and jurisdictions.
For identifier.type I have used transform operation as copy and
For jurisdictions I used transform operation as "cc" ( to create the Codable Concept) similar to the example shared by Oliver Egger (once again thanks a lot for the example).
I want to include below scenarios in structure map(json) with Coding and CodableConcept

  1. Input has 3 input fields (code , system and another code) and I want to translate this to Coding[0] with code and system
    Coding[1] with another Code.
    2 . How to pass display and text as well in codable concept inside structure map example shared by Oliver Egger similar to below example if "transform": "cc" or "transform": "copy"

"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "260385009",
"display": "Negative"
}, {
"system": "https://acme.lab/resultcodes",
"code": "NEG",
"display": "Negative"
}
],
"text": "Negative for Chlamydia Trachomatis rRNA"
}

Hello @Brian Reinhold and @Oliver Egger also I would like to know
in the below screen shot the system and code are passed in parameters [] array, where system I believe is passed using key "valueString" and "code" is passed using key "valueId":"code" , i would like to know since the code value is not hardcoded and is coming from the source and is passed to key "valueId" , how to map the exact code inside the key "valueId": from the source.
Example : coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/v2-0203",
"code": "MR"
}
]
image.png

view this post on Zulip Lloyd McKenzie (May 16 2021 at 19:24):

You might want to raise StructureMap-related questions on #mapping-framework


Last updated: Apr 12 2022 at 19:14 UTC