Fo-Dicom addupdate,delete and search Header Tages - dicom

Is there anyone who can help me to add update,delete and search functionality in Dicom header with fo-dicom. i want to save image pixel data in dicom header.
im working in https://github.com/fo-dicom/fo-dicom
In desktop c#

to add or delete DicomTags from a DicomDataset (a dicomdataset is a collection that holds all the dicomtags from the header) just use the mothods
- DicomDataset.Add
- DicomDataset.AddOrUpdate
- DicomDataset.Remove
And to access the pixeldata take a look at the wiki of fo-dicom here: https://github.com/fo-dicom/fo-dicom/wiki. There you can see some descriptions.
If this does not help you, please specify in more detail what exactly you need. It would be a pleasure for me to help you.

Related

Scrape an image from website in Google sheets (using ImportXml)

I'm trying to scrape a product image from Aliexpress website to display in a cell together with link and other details. I've been trying to formulate the xpath, however I've been getting an error.
this is the command I've used:
=image(IMPORTXML(A2, "(//img[#class='magnifier-image'])[1]/#src"))
A2 is the product link
this is the element from Aliexpress website
link to the product: https://www.aliexpress.com/item/1005001845596088.html
Could anyone help me understand what I'm doing wrong please?
I would be very grateful for any ideas.
Thank you,
Kristyna
Unfortunately, the HTML data retrieved by IMPORTXML has not value of img[#class='magnifier-image']. But, fortunately, that image URL can be retrieved from meta tag. When this is reflected in the formula, it becomes as follows.
Sample formula:
=IMAGE(IMPORTXML(A2,"//meta[#property='og:image']/#content"))
The cell "A2" has the URL of https://www.aliexpress.com/item/1005001845596088.html.
In this case, the image URL of https://ae01.alicdn.com/kf/S962937cf821a4e0196a11cf0c877df11Y/Birthday-Valentine-Day-Keychain-Gifts-for-Boyfriend-Husband-My-Man-I-love-you-Couples-Keyring-for.jpg is retrieved.
Note:
This sample formula is for the URL of https://www.aliexpress.com/item/1005001845596088.html. So when you change the URL, this formula might not be able to be used. And also, when the specification of the site is changed, this formula might not be able to be used. Please be careful about this.

DiagnosticOrder.Item - How should I incorporate other attributes

In our system , DiagnosticOrder.Item has many attributes. Example,
1. Code
2. Name
3. Parent Code
4. Problem with the code
5. Automatically added code ... and many more.
Seems to me , it will be more appropriate to create a new resource here. I see that DiagnosticOrder.Item is a backbone element.
Question is , should I create a new resource or should I use extension here for DiagnosticOrder.Item?
I am more inclined to create a new resource - but not sure how to create one ? If I have to create one , can you please guide me to create a new resource ?
At the moment, creating your own resource is non-compliant, though you could profile the Basic resource. What you're looking for sounds like an extension to me, though you could also look at DataElement.

Confusion over TopoJSON Format

I am attempting to follow mbostock's "Let's Make a Map" Tutorial here: http://bost.ocks.org/mike/map/. At a certain point in the tutorial, he writes:
d3.json("uk.json", function(error, uk) {
svg.append("path")
.datum(topojson.feature(uk, uk.objects.subunits))
.attr("d", d3.geo.path().projection(d3.geo.mercator()));
});
Without seeing the format of his topoJSON file, it is hard to determine what the equivalent "uk.objects.subunits" line is for my code (my topoJSON can be viewed here: https://gist.github.com/jcahan/e1772766f01b68b00dc9).
Would someone please help clarify how I (and future readers) can determine the inner property (eg uk.objects.subunits) of my topojson file?
Thanks for your time!
Use the web console in your browser (I use the Firebug extension in Firefox) to view Mike's example page and you can watch the browser pull down the uk.json file and view its format. Here's the relevant snippet:
{"type":"Topology","transform":{"scale":
[0.001546403012701271,0.0010939367048704803],"translate":
[-13.69131425699993,49.90961334800009]},"objects":{"subunits":
{"type":"GeometryCollection","geometries":[{"type":"MultiPolygon","id":"ENG","arcs":[[[0]],
[[1]],[[2]],[[3]],[[4]],[[5]],[[6,7,8,9]]],"properties":{"name":"England"}},
You can see the hierarchy of uk.objects.subunits
subunits contains the GeometryCollection. Have a look at your json file and do the same.
Double check that this instruction from Mike is working:
d3.json("uk.json", function(error, uk) {
console.log(uk);
});
Now if you peek at your JavaScript console, you should see a topology object that represents the administrative boundaries and populated places of the United Kingdom.
If you get it to work, let me know, as I cannot get my personal TopoJSON file to load, although I can get all of Mike's to do so. I've come to the conclusion that my TopoJSON file must be wrong somehow.
Sure.
That JSON file happens to be close friend (actually a neightboor) of the example. So you can see it atthe http://bost.ocks.org/mike/map/uk.json
Regards.

Using XLS files to store JBehave stories

I have based my new project with JBehave, Selenium, Maven and Spring from the etsy sample here : https://github.com/jbehave/jbehave-tutorial/tree/master/etsy-selenium/java-spring
I'm really new to JBehave and I would like to know if there is a way to get it reading stories from XLS files ?
I think there is something to do with the String[] storyPaths() method that returns the stories name but I don't know how JBehave manages their content.
Thanks a lot for the help !
I need to change the storyPaths() method to be able to read stories title.
I also have my answer : I need to extend from org.jbehave.core.io.LoadFromClasspath or org.jbehave.core.io.LoadFromURL classes to get stories content.

How to OR solr term facets via the search URL in Drupal 7 site?

I have a Drupal 7 website that is running apachesolr search and is using faceting through the facetapi module.
When I use the facets to narrow my searches, everything works perfectly and I can see the filters being added to the search URL, so I can copy them as links (ready-made narrowed searches) elsewhere on the site.
Here is an example of how the apachesolr URL looks after I select several facets/filters:
search_url/search_keyword?f[0]=im_field_tag_term1%3A1&f[1]=im_field_tag_term2%3A100
Where the 'search_keyword' portion is the text I'm searching for and the '%3A' is just the url encoded ':' (colon).
Knowing this format, I can create any number of ready-made searches by creating the correct format for the URL. Perfect!
However, these filters are always ANDed, the same way they are when using the facet interface. Does anyone know if there is a syntax I can use, specifically in the search URL, to OR my filters/facets? Meaning, to make it such that the result is all entries that contains EITHER of the two filters?
Thanks in advance for any help or pointers in the right direction!
New edit:
I do know how to OR terms within the same vocabulary through the URL, I'm just wondering how to do it for terms in different vocabularies. ;-)
You can write a filter query that looks like:
fq=field1:value1 OR field2:value2
Alternatively you can use localparams to specify the query operator:
fq={!q.op=OR}field1:value1 field2:value2
As far as I know, there's not any easier way to do this. There is, in fact, an rather old bug asking for a way to OR the fq parameters...
I finally found a way to do this in Drupal
Enable the fq parameter setting.
Go to admin/config/search/apachesolr/[your_search_page]/core_search/edit or just navigate to the settings of the search page you're trying to modify
Check the 'Allow user input using the URL' setting
URL Syntax
Add the following at the end of the URL: ?fq=tid:(16 OR 38), where 16 and 38 are the term ids

Resources