Stream: implementers
Topic: Diff b/w structureMap and conceptMap
Ravishankar P (May 11 2021 at 11:49):
Hi All,
what is the difference b/w structureMap and conceptMap ?
Oliver Egger (May 11 2021 at 12:56):
ConceptMap maps from concept to concept (e.g. codes), StructureMap from structrures to structures (trees):
The ConceptMap resource is suitable for representing high level relationships between models, while this StructureMap resource is intended to describe the full details that need to be known in order to transform an instance of data from one structure to another.
see alsomore info in boundary and relationships directly in the spec
Ravishankar P (May 12 2021 at 05:15):
Oliver Egger said:
ConceptMap maps from concept to concept (e.g. codes), StructureMap from structrures to structures (trees):
The ConceptMap resource is suitable for representing high level relationships between models, while this StructureMap resource is intended to describe the full details that need to be known in order to transform an instance of data from one structure to another.
see alsomore info in boundary and relationships directly in the spec
Is it possible to combine structureMap and conceptMap ??
Oliver Egger (May 12 2021 at 05:31):
yes, you can embed ConceptMaps to translate between different code systems in a StructureMap with the translate operation https://www.hl7.org/fhir/mapping-language.html
Ravishankar P (May 12 2021 at 07:24):
Oliver Egger said:
yes, you can embed ConceptMaps to translate between different code systems in a StructureMap with the translate operation https://www.hl7.org/fhir/mapping-language.html
can i get some examples of JSON structures which includes conceptMap and structureMap , ??
Oliver Egger (May 12 2021 at 09:13):
Json example is here which translates the gender from CDA to FHIR, I prefere however the Structure map text representation
Ravishankar P (May 12 2021 at 14:42):
Oliver Egger said:
Json example is here which translates the gender from CDA to FHIR, I prefere however the Structure map text representation
Thank you so much @Oliver Egger
Ravishankar P (May 14 2021 at 06:52):
Ravishankar P said:
Oliver Egger said:
Json example is here which translates the gender from CDA to FHIR, I prefere however the Structure map text representation
Thank you so much Oliver Egger
How i can use StructureMapUtils.class services in implementation, can i get any examples for this ??
Oliver Egger (May 14 2021 at 08:34):
1) It is used in the Java Validator for doing the -transform functionality here.
2) We expose a $tranform operation on matchbox, source usting StructureMapUtils is here
Ravishankar P (May 15 2021 at 05:40):
Oliver Egger said:
1) It is used in the Java Validator for doing the -transform functionality here.
2) We expose a $tranform operation on matchbox, source usting StructureMapUtils is here
i'm getting below error
Ravishankar P (May 15 2021 at 05:41):
Oliver Egger said:
1) It is used in the Java Validator for doing the -transform functionality here.
2) We expose a $tranform operation on matchbox, source usting StructureMapUtils is here
i'm getting below error
Caused by: java.lang.NoClassDefFoundError: ca/uhn/fhir/interceptor/api/IPointcut
Ravishankar P (May 15 2021 at 06:54):
Ravishankar P said:
Oliver Egger said:
1) It is used in the Java Validator for doing the -transform functionality here.
2) We expose a $tranform operation on matchbox, source usting StructureMapUtils is herei'm getting below error
Caused by: java.lang.NoClassDefFoundError: ca/uhn/fhir/interceptor/api/IPointcut
<hapi.version>5.4.0-PRE2-SNAPSHOT</hapi.version> this version is not availabel in maven
Oliver Egger (May 15 2021 at 13:35):
are you trying to compile matchbox? if yes you need to checkout the dev branches for org.hl7.fhir.core and hapi.fhir, see https://github.com/ahdis/matchbox#developing-matchbox
Hamilton Lima (May 15 2021 at 16:55):
Oliver Egger said:
are you trying to compile matchbox? if yes you need to checkout the dev branches for org.hl7.fhir.core and hapi.fhir, see https://github.com/ahdis/matchbox#developing-matchbox
Hey @Oliver Egger nice job on matchbox, was reading the code to get a sense if that can be used to extend the HAPI server, as an extension of the full server, or is there a way to create a POJO and deploy as WAR or JAR to the HAPI server to implement for example $next-question Operation
Oliver Egger (May 17 2021 at 06:12):
currently the functioniality is provided via ResourceProviders and fixed wired during startup on a plain hapi rest sever (not JPA). I think it might be possible to inject the functionality via DI (spring-boot), maybe ask on the #hapi stream if people already have tried to extend the hapi-server in such a way or perhaps @Jens Villadsen or @Sean McIlvenna have additional thoughts?
Sean McIlvenna (May 17 2021 at 15:08):
Seems like you're just talking about a custom operation. Should be able to do that pretty easy in JPA:
https://hapifhir.io/hapi-fhir/docs/server_plain/rest_operations_operations.html
Jens Villadsen (May 18 2021 at 21:00):
Sure - you can wire whatever custom ResourceProvider you would like to, into HAPI FHIR - and I agree with @Sean McIlvenna - it sounds like you're taking about a custom operation
Oliver Egger (May 19 2021 at 05:25):
thanks @Jens Villadsen @Sean McIlvenna . i was looking for a way that the resource provider could be configured in spring-boot that you just add the jar with the resource-provider and not writing any code in hapifhir/hapi-fhir-jpaserver-starter, but I guess that is not that easy becasue you have one jar in the end?
Last updated: Apr 12 2022 at 19:14 UTC